edit
This commit is contained in:
parent
cfce325111
commit
1becac5894
@ -21,6 +21,9 @@
|
|||||||
import 'dayjs/locale/zh-cn';
|
import 'dayjs/locale/zh-cn';
|
||||||
dayjs.locale('zh-cn');
|
dayjs.locale('zh-cn');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定义参数
|
||||||
|
*/
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const locale = zhCN;
|
const locale = zhCN;
|
||||||
const useLockscreen = useLockscreenStore();
|
const useLockscreen = useLockscreenStore();
|
||||||
@ -29,6 +32,9 @@
|
|||||||
const {getIsWaterMark} = useProjectSetting();
|
const {getIsWaterMark} = useProjectSetting();
|
||||||
let timer;
|
let timer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定义锁屏
|
||||||
|
*/
|
||||||
const timekeeping = () => {
|
const timekeeping = () => {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
if (route.name == 'login' || isLock.value) return;
|
if (route.name == 'login' || isLock.value) return;
|
||||||
@ -46,6 +52,9 @@
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* 钩子函数
|
||||||
|
*/
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if(getIsWaterMark.value) {
|
if(getIsWaterMark.value) {
|
||||||
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
const waterText = import.meta.env.VITE_GLOB_APP_TITLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user