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.
dianshang-qianduan/src/App.vue

28 lines
906 B
Vue

2 years ago
<!--
* @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
-->
5 years ago
<template>
<router-view />
</template>
<script setup>
import useSettingsStore from "@/store/modules/settings";
import { handleThemeStyle } from "@/utils/theme";
2 years ago
import cache from "@/plugins/cache";
import { removeUserInfo, removeToken } from "@/utils/auth.js";
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme);
});
2 years ago
if (cache.session.getJSON("sessionObj") === undefined) {
removeToken();
removeUserInfo();
}
});
2 years ago
</script>