改进 登录判断
This commit is contained in:
parent
f2cc6f423b
commit
34630760e3
@ -8,7 +8,7 @@
|
||||
<v-btn
|
||||
density="default"
|
||||
icon="mdi-plus"
|
||||
title="创建资料库"
|
||||
title="创建助理"
|
||||
/>
|
||||
</v-btn-group>
|
||||
</div>
|
||||
@ -25,32 +25,13 @@
|
||||
/>
|
||||
|
||||
<v-list-item
|
||||
v-show="!logined"
|
||||
v-show="!userStore.logined"
|
||||
prepend-icon="mdi-account"
|
||||
rounded="lg"
|
||||
title="登录"
|
||||
to="/auth/login"
|
||||
/>
|
||||
|
||||
<!-- <v-list-item
|
||||
v-for="i in libraries.libraries"
|
||||
v-if="libraries"
|
||||
prepend-icon="mdi-home"
|
||||
rounded="lg"
|
||||
:title="i.name"
|
||||
:to="{
|
||||
name: 'documents.list',
|
||||
params: {
|
||||
'LibraryId': i.id
|
||||
}
|
||||
}"
|
||||
/> -->
|
||||
|
||||
<!-- <v-list-item
|
||||
prepend-icon="mdi-forum"
|
||||
title="About"
|
||||
value="about"
|
||||
></v-list-item> -->
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
|
||||
@ -64,9 +45,10 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue";
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
import { useUserStore } from "@/stores/user";
|
||||
|
||||
const configStore = useConfigStore();
|
||||
const userStore = useUserStore();
|
||||
|
||||
const drawer = ref(false);
|
||||
const logined = ref(false);
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user