This commit is contained in:
陈红丽 2024-12-19 10:33:44 +08:00
parent cfce325111
commit 1becac5894

View File

@ -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;