Sfoglia il codice sorgente

修改drp路径配置补充

黄梓星 2 anni fa
parent
commit
cf8b64957d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/router/index.js

+ 1 - 0
src/router/index.js

@@ -171,6 +171,7 @@ Router.prototype.push = function push(location) {
 }
 
 export default new Router({
+  base: process.env.VUE_APP_CONTEXT_PATH,
   mode: 'history', // 去掉url中的#
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes