Переглянути джерело

fix 请求地址的更改

zhangyinghao 1 рік тому
батько
коміт
a4a2731306

+ 1 - 1
src/utils/adminRequest.js

@@ -2,7 +2,7 @@ import axios from 'axios'
 import { getToken, removeToken, setToken } from './auth'
 // create an axios instance
 const service = axios.create({
-  baseURL: 'http://localhost:8989', // url = base url + request url
+  baseURL: 'http://jzmanagerweb.aiyangniu.net', // url = base url + request url
   // withCredentials: true, // send cookies when cross-domain requests
   timeout: 5000 // request timeout
 })

+ 1 - 1
src/utils/serverConditionRequest.js

@@ -2,7 +2,7 @@ import axios from 'axios'
 import { getToken,removeToken } from './auth'
 // create an axios instance
 const serverConditionRequest  = axios.create({
-  baseURL: 'http://localhost:8989', // url = base url + request url
+  baseURL: 'http://jzmanagerweb.aiyangniu.net', // url = base url + request url
   // withCredentials: true, // send cookies when cross-domain requests
   timeout: 5000 // request timeout
 })

+ 1 - 1
src/utils/serverRequest.js

@@ -4,7 +4,7 @@ import { getToken,removeToken, setToken } from './auth'
 const service = axios.create({
   baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
   // withCredentials: true, // send cookies when cross-domain requests
-  baseURL: 'http://localhost:8989',
+  baseURL: 'http://jzmanagerweb.aiyangniu.net',
   timeout: 5000 // request timeout
 })
 

+ 1 - 1
vue.config.js

@@ -40,7 +40,7 @@ module.exports = {
     // before: require('./mock/mock-server.js')
     proxy: {
       [process.env.VUE_APP_BASE_API]: {
-        target: 'http://localhost:8989',
+        target: 'http://jzmanagerweb.aiyangniu.net',
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''