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