mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
chore: update
This commit is contained in:
parent
e4c33a7d22
commit
2bbf04b191
@ -157,6 +157,7 @@ function initRouter() {
|
|||||||
getAsyncRoutes().then(({ data }) => {
|
getAsyncRoutes().then(({ data }) => {
|
||||||
if (data.length === 0) {
|
if (data.length === 0) {
|
||||||
usePermissionStoreHook().handleWholeMenus(data);
|
usePermissionStoreHook().handleWholeMenus(data);
|
||||||
|
resolve(router);
|
||||||
} else {
|
} else {
|
||||||
formatFlatteningRoutes(addAsyncRoutes(data)).map(
|
formatFlatteningRoutes(addAsyncRoutes(data)).map(
|
||||||
(v: RouteRecordRaw) => {
|
(v: RouteRecordRaw) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user