mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): @sa/axios: createRequest, createFlatRequest, createHookRequest
This commit is contained in:
@ -167,17 +167,19 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
||||
|
||||
/** Init dynamic auth route */
|
||||
async function initDynamicAuthRoute() {
|
||||
const {
|
||||
data: { routes, home }
|
||||
} = await fetchGetUserRoutes();
|
||||
const { data, error } = await fetchGetUserRoutes();
|
||||
|
||||
handleAuthRoutes(routes);
|
||||
if (!error) {
|
||||
const { routes, home } = data;
|
||||
|
||||
setRouteHome(home);
|
||||
handleAuthRoutes(routes);
|
||||
|
||||
handleUpdateRootRouteRedirect(home);
|
||||
setRouteHome(home);
|
||||
|
||||
setIsInitAuthRoute(true);
|
||||
handleUpdateRootRouteRedirect(home);
|
||||
|
||||
setIsInitAuthRoute(true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user