<!--
 * @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>