浏览代码

feat: qiankun子应用改造5

cuiyalong 3 月之前
父节点
当前提交
f9cd43553a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/router.js

+ 1 - 1
src/router.js

@@ -178,7 +178,7 @@ routeComponent.keys().forEach(fileName => {
 Vue.use(Router);
 Vue.use(Router);
 
 
 const router = new Router({
 const router = new Router({
-    base: window.__POWERED_BY_QIANKUN__ ? window.__QIANKUN_ROUTER_BASE : '',
+    base: window.__POWERED_BY_QIANKUN__ ? window.__QIANKUN_ROUTER_BASE : '/qmx_page_admin',
     mode: 'history',
     mode: 'history',
     routes: [...routes, ...marketRouter]
     routes: [...routes, ...marketRouter]
 });
 });