Преглед на файлове

修改文本 设置加长路径

plg преди 6 месеца
родител
ревизия
31b5c6f6e4
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  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",