zhangyinghao 1 rok pred
rodič
commit
f58490537b

+ 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://jzmanagerweb.aiyangniu.net', // url = base url + request url
+  baseURL: 'http://jzmanager.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://jzmanagerweb.aiyangniu.net', // url = base url + request url
+  baseURL: 'http://jzmanager.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://jzmanagerweb.aiyangniu.net',
+  baseURL: 'http://jzmanager.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://jzmanagerweb.aiyangniu.net',
+        target: 'http://jzmanager.aiyangniu.net',
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''