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