| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { onMounted, ref, computed, reactive } from "vue"; |
| | | import myFooter from "./component/myFooter.vue"; |
| | | import MyFooter from "./component/myFooter.vue"; |
| | | import { useUserStoreHook } from "@/store/modules/user"; |
| | | import { exRole } from "@/api/register/index.ts"; |
| | | import { exRole } from "@/api/register/index"; |
| | | import { storageLocal, isString, isIncludeAllChildren } from "@pureadmin/utils"; |
| | | |
| | | import { getToken } from "@/utils/auth"; |
| | |
| | | const userStore = useUserStore(); |
| | | |
| | | // 访问 state 属性 |
| | | console.log(userStore.roles,'-'); // 直接获取值 |
| | | // console.log(userStore.roles,'-'); // 直接获取值 |
| | | defineOptions({ |
| | | name: "Main" |
| | | name: "MainPage" |
| | | }); |
| | | let activeName = ref("first"); |
| | | /** 角色(如果昵称为空则显示用户名) */ |