1.增加退出按钮的条件编译,是否存在token
This commit is contained in:
parent
984590d661
commit
c3e01f3a6d
@ -56,7 +56,7 @@
|
|||||||
<the-notification-menu />
|
<the-notification-menu />
|
||||||
<the-settings-menu />
|
<the-settings-menu />
|
||||||
<the-top-corner-menu />
|
<the-top-corner-menu />
|
||||||
<img class="outImg" @click="dialog = true" src="../../public/img/icons/tuichu.png" />
|
<img class="outImg" v-if="TokenStatus" @click="dialog = true" src="../../public/img/icons/tuichu.png" />
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" fixed right bottom>
|
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" fixed right bottom>
|
||||||
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong>
|
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong>
|
||||||
@ -226,6 +226,10 @@ export default class TheTopbar extends Mixins(BaseMixin, ThemeMixin) {
|
|||||||
return this.$store.state.gui?.uiSettings?.defaultNavigationStateSetting ?? 'alwaysOpen'
|
return this.$store.state.gui?.uiSettings?.defaultNavigationStateSetting ?? 'alwaysOpen'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get TokenStatus() {
|
||||||
|
return localStorage.getItem('token') ? true : false
|
||||||
|
}
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
//this.naviDrawer = this.$vuetify.breakpoint.lgAndUp
|
//this.naviDrawer = this.$vuetify.breakpoint.lgAndUp
|
||||||
switch (this.defaultNavigationStateSetting) {
|
switch (this.defaultNavigationStateSetting) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user