Selaa lähdekoodia

配置打包路径

306132416@qq.com 4 vuotta sitten
vanhempi
commit
cd9176211d
1 muutettua tiedostoa jossa 15 lisäystä ja 14 poistoa
  1. 15 14
      vue.config.js

+ 15 - 14
vue.config.js

@@ -1,14 +1,15 @@
-module.exports = {
-    devServer: {
-        proxy: {
-            '/api':{
-                target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口)
-                changeOrigin:true,
-                pathRewrite:{
-                    '^/api': '/'
-                }
-            }
-        }
-
-    }
-}
+module.exports = {
+    publicPath: './',
+    devServer: {
+        proxy: {
+            '/api':{
+                target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口)
+                changeOrigin:true,
+                pathRewrite:{
+                    '^/api': '/'
+                }
+            }
+        }
+
+    }
+}