fix(导航栏): 优化

This commit is contained in:
Zhunianya
2026-03-20 17:49:25 +08:00
parent edeaa75337
commit 8ec0a9d988

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" /> <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav" /> <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav" />
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" /> <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
@@ -94,9 +94,9 @@ export default {
this.$store.dispatch('app/toggleSideBar'); this.$store.dispatch('app/toggleSideBar');
}, },
async logout() { async logout() {
this.$confirm('确定注销并退出系统吗?', '提示', { this.$confirm(this.$t('login.989807-31'), this.$t('login.989807-32'), {
confirmButtonText: '确定', confirmButtonText: this.$t('confirm'),
cancelButtonText: '取消', cancelButtonText: this.$t('cancel'),
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {