🤔 test(user): 用户页草创,用于试验各种接口

This commit is contained in:
BTMuli
2023-05-04 21:12:05 +08:00
parent baff5a17c6
commit bc118a11c0
3 changed files with 22 additions and 3 deletions

View File

@@ -115,11 +115,11 @@
</v-list-group>
<v-divider />
<div class="bottom-menu">
<!-- <v-list-item :title="userInfo.nickname" value="user" link href="/user">
<v-list-item v-show="isDev" :title="userInfo.nickname" value="user" link href="/user">
<template #prepend>
<img :src="userInfo.avatar" alt="userIcon" class="side-icon">
</template>
</v-list-item> -->
</v-list-item>
<v-list-item :title="themeTitle" value="theme" @click="switchTheme()">
<template #prepend>
<v-icon style="color:var(--sidebar-icon)">
@@ -147,7 +147,14 @@ import { useAppStore } from "../store/modules/app";
const appStore = useAppStore();
// 测试数据
const userInfo = {
nickname: "测试用户",
avatar: "/source/UI/defaultUser.webp",
};
const rail = ref(appStore.sidebar.collapse);
const isDev = ref(appStore.devMode);
// theme
const themeGet = computed({
get () {