From 75e25f89bd1bcfa2eb8208674327caed2790070a Mon Sep 17 00:00:00 2001
From: 胡思旗 <931347610@qq.com>
Date: Mon, 28 Aug 2023 09:26:45 +0800
Subject: [PATCH] 前端环境初步搭建
---
src/components/common/topbar.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/components/common/topbar.vue b/src/components/common/topbar.vue
index 4f0bff3..acec2c6 100644
--- a/src/components/common/topbar.vue
+++ b/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>
--
Gitblit v1.9.3