Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Simoje丶
vue-vben-admin
提交
d5b76892
V
vue-vben-admin
项目概览
Simoje丶
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d5b76892
编写于
5月 25, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(lock): automatic screen lock does not work
上级
785732f4
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
92 addition
and
93 deletion
+92
-93
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
src/App.vue
src/App.vue
+2
-6
src/layouts/default/index.vue
src/layouts/default/index.vue
+7
-1
src/main.ts
src/main.ts
+1
-5
types/global.d.ts
types/global.d.ts
+4
-4
yarn.lock
yarn.lock
+77
-77
未找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
d5b76892
...
...
@@ -17,6 +17,7 @@
-
修复黑暗主题刷新闪烁的白屏
-
修复标签页关闭其他功能失效问题
-
修复表单已知问题
-
修复自动锁屏失效
## 2.3.0 (2021-04-10)
...
...
src/App.vue
浏览文件 @
d5b76892
<
template
>
<ConfigProvider
v-bind=
"lockEvent"
:locale=
"getAntdLocale"
>
<ConfigProvider
:locale=
"getAntdLocale"
>
<AppProvider>
<RouterView
/>
</AppProvider>
...
...
@@ -11,7 +11,6 @@
import
{
ConfigProvider
}
from
'
ant-design-vue
'
;
import
{
AppProvider
}
from
'
/@/components/Application
'
;
import
{
useLockPage
}
from
'
/@/hooks/web/useLockPage
'
;
import
{
useTitle
}
from
'
/@/hooks/web/useTitle
'
;
import
{
useLocale
}
from
'
/@/locales/useLocale
'
;
...
...
@@ -24,10 +23,7 @@
// support Multi-language
const
{
getAntdLocale
}
=
useLocale
();
// Create a lock screen monitor
const
lockEvent
=
useLockPage
();
return
{
getAntdLocale
,
lockEvent
};
return
{
getAntdLocale
};
},
});
</
script
>
src/layouts/default/index.vue
浏览文件 @
d5b76892
<
template
>
<Layout
:class=
"prefixCls"
>
<Layout
:class=
"prefixCls"
v-bind=
"lockEvents"
>
<LayoutFeatures
/>
<LayoutHeader
fixed
v-if=
"getShowFullHeaderRef"
/>
<Layout
:class=
"layoutClass"
>
...
...
@@ -26,6 +26,7 @@
import
{
useHeaderSetting
}
from
'
/@/hooks/setting/useHeaderSetting
'
;
import
{
useMenuSetting
}
from
'
/@/hooks/setting/useMenuSetting
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
import
{
useLockPage
}
from
'
/@/hooks/web/useLockPage
'
;
import
{
useAppInject
}
from
'
/@/hooks/web/useAppInject
'
;
...
...
@@ -45,6 +46,10 @@
const
{
getIsMobile
}
=
useAppInject
();
const
{
getShowFullHeaderRef
}
=
useHeaderSetting
();
const
{
getShowSidebar
,
getIsMixSidebar
}
=
useMenuSetting
();
// Create a lock screen monitor
const
lockEvents
=
useLockPage
();
const
layoutClass
=
computed
(()
=>
({
'
ant-layout-has-sider
'
:
unref
(
getIsMixSidebar
)
}));
return
{
...
...
@@ -54,6 +59,7 @@
getIsMobile
,
getIsMixSidebar
,
layoutClass
,
lockEvents
,
};
},
});
...
...
src/main.ts
浏览文件 @
d5b76892
...
...
@@ -26,7 +26,7 @@ if (import.meta.env.DEV) {
(
async
()
=>
{
const
app
=
createApp
(
App
);
// Configure
vuex
store
// Configure store
setupStore
(
app
);
// Initialize internal system configuration
...
...
@@ -55,8 +55,4 @@ if (import.meta.env.DEV) {
await
router
.
isReady
();
app
.
mount
(
'
#app
'
,
true
);
if
(
import
.
meta
.
env
.
DEV
)
{
window
.
__APP__
=
app
;
}
})();
types/global.d.ts
浏览文件 @
d5b76892
...
...
@@ -16,10 +16,10 @@ declare global {
};
lastBuildTime
:
string
;
};
declare
interface
Window
{
// Global vue app instance
__APP__
:
App
<
Element
>
;
}
//
declare interface Window {
//
// Global vue app instance
//
__APP__: App<Element>;
//
}
// vue
declare
type
PropType
<
T
>
=
VuePropType
<
T
>
;
...
...
yarn.lock
浏览文件 @
d5b76892
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录