Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
d5b76892
提交
d5b76892
authored
5月 25, 2021
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(lock): automatic screen lock does not work
上级
785732f4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
15 行增加
和
16 行删除
+15
-16
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
App.vue
src/App.vue
+2
-6
index.vue
src/layouts/default/index.vue
+7
-1
main.ts
src/main.ts
+1
-5
global.d.ts
types/global.d.ts
+4
-4
yarn.lock
yarn.lock
+0
-0
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
d5b76892
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
-
修复黑暗主题刷新闪烁的白屏
-
修复黑暗主题刷新闪烁的白屏
-
修复标签页关闭其他功能失效问题
-
修复标签页关闭其他功能失效问题
-
修复表单已知问题
-
修复表单已知问题
-
修复自动锁屏失效
## 2.3.0 (2021-04-10)
## 2.3.0 (2021-04-10)
...
...
src/App.vue
浏览文件 @
d5b76892
<
template
>
<
template
>
<ConfigProvider
v-bind=
"lockEvent"
:locale=
"getAntdLocale"
>
<ConfigProvider
:locale=
"getAntdLocale"
>
<AppProvider>
<AppProvider>
<RouterView
/>
<RouterView
/>
</AppProvider>
</AppProvider>
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
import
{
ConfigProvider
}
from
'ant-design-vue'
;
import
{
ConfigProvider
}
from
'ant-design-vue'
;
import
{
AppProvider
}
from
'/@/components/Application'
;
import
{
AppProvider
}
from
'/@/components/Application'
;
import
{
useLockPage
}
from
'/@/hooks/web/useLockPage'
;
import
{
useTitle
}
from
'/@/hooks/web/useTitle'
;
import
{
useTitle
}
from
'/@/hooks/web/useTitle'
;
import
{
useLocale
}
from
'/@/locales/useLocale'
;
import
{
useLocale
}
from
'/@/locales/useLocale'
;
...
@@ -24,10 +23,7 @@
...
@@ -24,10 +23,7 @@
// support Multi-language
// support Multi-language
const
{
getAntdLocale
}
=
useLocale
();
const
{
getAntdLocale
}
=
useLocale
();
// Create a lock screen monitor
return
{
getAntdLocale
};
const
lockEvent
=
useLockPage
();
return
{
getAntdLocale
,
lockEvent
};
},
},
});
});
</
script
>
</
script
>
src/layouts/default/index.vue
浏览文件 @
d5b76892
<
template
>
<
template
>
<Layout
:class=
"prefixCls"
>
<Layout
:class=
"prefixCls"
v-bind=
"lockEvents"
>
<LayoutFeatures
/>
<LayoutFeatures
/>
<LayoutHeader
fixed
v-if=
"getShowFullHeaderRef"
/>
<LayoutHeader
fixed
v-if=
"getShowFullHeaderRef"
/>
<Layout
:class=
"layoutClass"
>
<Layout
:class=
"layoutClass"
>
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
import
{
useHeaderSetting
}
from
'/@/hooks/setting/useHeaderSetting'
;
import
{
useHeaderSetting
}
from
'/@/hooks/setting/useHeaderSetting'
;
import
{
useMenuSetting
}
from
'/@/hooks/setting/useMenuSetting'
;
import
{
useMenuSetting
}
from
'/@/hooks/setting/useMenuSetting'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
useLockPage
}
from
'/@/hooks/web/useLockPage'
;
import
{
useAppInject
}
from
'/@/hooks/web/useAppInject'
;
import
{
useAppInject
}
from
'/@/hooks/web/useAppInject'
;
...
@@ -45,6 +46,10 @@
...
@@ -45,6 +46,10 @@
const
{
getIsMobile
}
=
useAppInject
();
const
{
getIsMobile
}
=
useAppInject
();
const
{
getShowFullHeaderRef
}
=
useHeaderSetting
();
const
{
getShowFullHeaderRef
}
=
useHeaderSetting
();
const
{
getShowSidebar
,
getIsMixSidebar
}
=
useMenuSetting
();
const
{
getShowSidebar
,
getIsMixSidebar
}
=
useMenuSetting
();
// Create a lock screen monitor
const
lockEvents
=
useLockPage
();
const
layoutClass
=
computed
(()
=>
({
'ant-layout-has-sider'
:
unref
(
getIsMixSidebar
)
}));
const
layoutClass
=
computed
(()
=>
({
'ant-layout-has-sider'
:
unref
(
getIsMixSidebar
)
}));
return
{
return
{
...
@@ -54,6 +59,7 @@
...
@@ -54,6 +59,7 @@
getIsMobile
,
getIsMobile
,
getIsMixSidebar
,
getIsMixSidebar
,
layoutClass
,
layoutClass
,
lockEvents
,
};
};
},
},
});
});
...
...
src/main.ts
浏览文件 @
d5b76892
...
@@ -26,7 +26,7 @@ if (import.meta.env.DEV) {
...
@@ -26,7 +26,7 @@ if (import.meta.env.DEV) {
(
async
()
=>
{
(
async
()
=>
{
const
app
=
createApp
(
App
);
const
app
=
createApp
(
App
);
// Configure
vuex
store
// Configure store
setupStore
(
app
);
setupStore
(
app
);
// Initialize internal system configuration
// Initialize internal system configuration
...
@@ -55,8 +55,4 @@ if (import.meta.env.DEV) {
...
@@ -55,8 +55,4 @@ if (import.meta.env.DEV) {
await
router
.
isReady
();
await
router
.
isReady
();
app
.
mount
(
'#app'
,
true
);
app
.
mount
(
'#app'
,
true
);
if
(
import
.
meta
.
env
.
DEV
)
{
window
.
__APP__
=
app
;
}
})();
})();
types/global.d.ts
浏览文件 @
d5b76892
...
@@ -16,10 +16,10 @@ declare global {
...
@@ -16,10 +16,10 @@ declare global {
};
};
lastBuildTime
:
string
;
lastBuildTime
:
string
;
};
};
declare
interface
Window
{
//
declare interface Window {
// Global vue app instance
//
// Global vue app instance
__APP__
:
App
<
Element
>
;
//
__APP__: App<Element>;
}
//
}
// vue
// vue
declare
type
PropType
<
T
>
=
VuePropType
<
T
>
;
declare
type
PropType
<
T
>
=
VuePropType
<
T
>
;
...
...
yarn.lock
浏览文件 @
d5b76892
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论