Полная зачистка legacy + закрытие fix24.1/fix24.2 + обновление логотипа
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useAppStore } from "@/store/modules/app";
|
||||
import { useTagsViewStore } from "@/store/modules/tagsView";
|
||||
import { useAccountStore } from "@/store/modules/account";
|
||||
import { useAdminStore } from "@/store/modules/admin";
|
||||
|
||||
const appStore = useAppStore();
|
||||
const tagsViewStore = useTagsViewStore();
|
||||
const accountStore = useAccountStore();
|
||||
const adminStore = useAdminStore();
|
||||
const { t } = useI18n();
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -30,12 +32,12 @@ const { isFullscreen, toggle } = useFullscreen();
|
||||
* Выход из системы.
|
||||
*/
|
||||
function logout() {
|
||||
ElMessageBox.confirm("Выйти из системы?", "Подтверждение", {
|
||||
confirmButtonText: "Выйти",
|
||||
cancelButtonText: "Отмена",
|
||||
ElMessageBox.confirm(t("common.logoutConfirm"), t("common.warning"), {
|
||||
confirmButtonText: t("navbar.logout"),
|
||||
cancelButtonText: t("common.cancel"),
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
accountStore
|
||||
adminStore
|
||||
.logout()
|
||||
.then(() => {
|
||||
tagsViewStore.delAllViews();
|
||||
@@ -139,4 +141,3 @@ function logout() {
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,14 @@ function resolvePath(routePath: string) {
|
||||
:icon-class="onlyOneChild.meta.icon"
|
||||
/>
|
||||
<template #title>
|
||||
{{ translateRouteTitleI18n(onlyOneChild.meta.title) }}
|
||||
<el-tooltip
|
||||
:content="translateRouteTitleI18n(onlyOneChild.meta.title)"
|
||||
placement="right"
|
||||
>
|
||||
<span class="menu-title">{{
|
||||
translateRouteTitleI18n(onlyOneChild.meta.title)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-menu-item>
|
||||
</app-link>
|
||||
@@ -105,9 +112,13 @@ function resolvePath(routePath: string) {
|
||||
v-if="item.meta && item.meta.icon"
|
||||
:icon-class="item.meta.icon"
|
||||
/>
|
||||
<span v-if="item.meta && item.meta.title">{{
|
||||
translateRouteTitleI18n(item.meta.title)
|
||||
}}</span>
|
||||
<el-tooltip
|
||||
v-if="item.meta && item.meta.title"
|
||||
:content="translateRouteTitleI18n(item.meta.title)"
|
||||
placement="right"
|
||||
>
|
||||
<span class="menu-title">{{ translateRouteTitleI18n(item.meta.title) }}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
||||
<sidebar-item
|
||||
@@ -120,4 +131,12 @@ function resolvePath(routePath: string) {
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.menu-title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user