wanggaokun 1 жил өмнө
parent
commit
b826db2d1f

+ 2 - 2
PHM-web/src/utils/request.js

@@ -15,8 +15,8 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
 // 创建axios实例
 const service = axios.create({
   // axios中请求配置有baseURL选项,表示请求URL公共部分
-  // baseURL: process.env.VUE_APP_BASE_API,
-  baseURL: 'http://192.168.0.104:8080',
+  baseURL: process.env.VUE_APP_BASE_API,
+  // baseURL: 'http://192.168.0.104:8080',
   // 超时
   timeout: 10000
 })

+ 1 - 1
PHM-web/vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://192.168.0.104:8080`,
+        target: `http://localhost:8080`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''