胡思旗
2023-08-28 75e25f89bd1bcfa2eb8208674327caed2790070a
src/components/common/topbar.vue
@@ -60,11 +60,12 @@
}
const username = ref(localStorage.getItem(ELocalStorageKey.Username))
const workspaceName = ref('')
const options = [
  { key: 0, label: ERouterName.WORKSPACE.charAt(0).toUpperCase() + ERouterName.WORKSPACE.substr(1), path: '/' + ERouterName.WORKSPACE },
  { key: 1, label: ERouterName.MEMBERS.charAt(0).toUpperCase() + ERouterName.MEMBERS.substr(1), path: '/' + ERouterName.MEMBERS },
  { key: 2, label: ERouterName.DEVICES.charAt(0).toUpperCase() + ERouterName.DEVICES.substr(1), path: '/' + ERouterName.DEVICES },
  { key: 3, label: ERouterName.FIRMWARES.charAt(0).toUpperCase() + ERouterName.FIRMWARES.substr(1), path: '/' + ERouterName.FIRMWARES },
  { key: 0, label: '项目', path: '/' + ERouterName.PROJECT },
  { key: 1, label: '人员管理', path: '/' + ERouterName.MEMBERS },
  { key: 2, label: '设备管理', path: '/' + ERouterName.DEVICES },
  // { key: 3, label: ERouterName.FIRMWARES.charAt(0).toUpperCase() + ERouterName.FIRMWARES.substr(1), path: '/' + ERouterName.FIRMWARES },
]
const selected = ref<string>(root.$route.path)
@@ -81,7 +82,7 @@
const logout = () => {
  localStorage.clear()
  root.$router.push(ERouterName.PROJECT)
  root.$router.push(ERouterName.LOGIN)
}
</script>