| | |
| | | } |
| | | 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) |
| | |
| | | |
| | | const logout = () => { |
| | | localStorage.clear() |
| | | root.$router.push(ERouterName.PROJECT) |
| | | root.$router.push(ERouterName.LOGIN) |
| | | } |
| | | </script> |
| | | |