RuoYi
2026-03-21 88c2e4979a53621db8b00b8e11a7c499febcd2da
ruoyi-ui/src/layout/components/Navbar.vue
@@ -40,6 +40,9 @@
          <el-dropdown-item @click.native="setLayout" v-if="setting">
            <span>布局设置</span>
          </el-dropdown-item>
          <el-dropdown-item @click.native="lockScreen">
            <span>锁定屏幕</span>
          </el-dropdown-item>
          <el-dropdown-item divided @click.native="logout">
            <span>退出登录</span>
          </el-dropdown-item>
@@ -106,6 +109,12 @@
    setLayout(event) {
      this.$emit('setLayout')
    },
    lockScreen() {
      const currentPath = this.$route.fullPath
      this.$store.dispatch('lock/lockScreen', currentPath).then(() => {
        this.$router.push('/lock')
      })
    },
    logout() {
      this.$confirm('确定注销并退出系统吗?', '提示', {
        confirmButtonText: '确定',
@@ -171,11 +180,6 @@
    align-items: center;
    overflow: hidden;
    margin-left: 8px;
  }
  .errLog-container {
    display: inline-block;
    vertical-align: top;
  }
  .right-menu {