You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
906 B
Vue
28 lines
906 B
Vue
<!--
|
|
* @Author: qinzhenpen qzp1807@126.com
|
|
* @Date: 2024-08-28 14:21:24
|
|
* @LastEditors: qinzhenpen qzp1807@126.com
|
|
* @LastEditTime: 2024-08-29 08:57:36
|
|
* @FilePath: \digital-marketing\src\App.vue
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
-->
|
|
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import useSettingsStore from "@/store/modules/settings";
|
|
import { handleThemeStyle } from "@/utils/theme";
|
|
import cache from "@/plugins/cache";
|
|
import { removeUserInfo, removeToken } from "@/utils/auth.js";
|
|
onMounted(() => {
|
|
nextTick(() => {
|
|
// 初始化主题样式
|
|
handleThemeStyle(useSettingsStore().theme);
|
|
});
|
|
if (cache.session.getJSON("sessionObj") === undefined) {
|
|
removeToken();
|
|
removeUserInfo();
|
|
}
|
|
});
|
|
</script> |