RuoYi
2025-04-27 2f8a257efd2b64dc40666b0d332edb7824a9768d
src/layout/components/Navbar.vue
@@ -79,13 +79,13 @@
function handleCommand(command) {
  switch (command) {
    case "setLayout":
      setLayout();
      break;
      setLayout()
      break
    case "logout":
      logout();
      break;
      logout()
      break
    default:
      break;
      break
  }
}
@@ -96,14 +96,14 @@
    type: 'warning'
  }).then(() => {
    userStore.logOut().then(() => {
      location.href = '/index';
      location.href = '/index'
    })
  }).catch(() => { });
  }).catch(() => { })
}
const emits = defineEmits(['setLayout'])
function setLayout() {
  emits('setLayout');
  emits('setLayout')
}
function toggleTheme() {