1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 15:31:23 +08:00

Fixed token to large error

This commit is contained in:
2023-05-23 02:29:36 +08:00
parent f87df23ea1
commit bd44024c29
7 changed files with 40 additions and 28 deletions

View File

@@ -223,13 +223,13 @@ export default {
setLocalStorage('menuCollapsed', this.isCollapsed.toString())
}
},
mounted() {
this.username = getUsername()
async mounted() {
this.username = await getUsername()
const allRoutes = _.cloneDeep(
_.filter(_.get(this.$router, 'options.routes[0].children'), 'meta.title')
)
const user = getUser()
const user = await getUser()
const menus = user.menus
this.routes = allRoutes.filter((level1) => {
if (level1.meta.requiresAuth) {