|
@@ -12,9 +12,7 @@ import { routes, getMenuRoutes } from './routes';
|
|
|
Vue.use(VueRouter);
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
const router = new VueRouter({
|
|
|
- base: window.__POWERED_BY_QIANKUN__
|
|
|
|
|
- ? '/page-main-data'
|
|
|
|
|
- : process.env.BASE_URL,
|
|
|
|
|
|
|
+ base: window.__POWERED_BY_QIANKUN__ ? '/page-main-data' : '/main-data',
|
|
|
routes,
|
|
routes,
|
|
|
mode: 'history',
|
|
mode: 'history',
|
|
|
scrollBehavior () {
|
|
scrollBehavior () {
|