Ver código fonte

修改文本 设置加长路径

plg 6 meses atrás
pai
commit
31b5c6f6e4
2 arquivos alterados com 3 adições e 2 exclusões
  1. 2 1
      src/router/index.js
  2. 1 1
      vue.config.js

+ 2 - 1
src/router/index.js

@@ -7,7 +7,8 @@ const RouterConfig = {
     mode: 'history',
     // base: process.env.BASE_URL,
     // base: 'child_pc',
-    base: '',
+    base: 'pc',
+    // base: '',
     routes: routers
 }
 

+ 1 - 1
vue.config.js

@@ -1,6 +1,6 @@
 module.exports = {
     // publicPath: '/child_pc/',
-    publicPath: '/',
+    publicPath: '/pc',
     assetsDir:"static",
     outputDir: 'child',
     indexPath:"index.html",