diff --git a/anmo-admin/config/index.js b/anmo-admin/config/index.js
index 13dfe9c..4904f29 100644
--- a/anmo-admin/config/index.js
+++ b/anmo-admin/config/index.js
@@ -5,6 +5,8 @@
const path = require('path')
const devEnv = require('./dev.env')
+import { serverPaths } from '@/utils/enumData'
+
module.exports = {
dev: {
@@ -14,9 +16,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': {
- // target: 'http://192.168.0.109:8187/sqx_fast/',
- // target: 'http://192.168.1.168:8187/sqx_fast/',
- target: 'https://admin.sjajk.com/sqx_fast/',
+ target: this.serverPaths.serverUrl,
changeOrigin: true,
pathRewrite: {
'^/proxyApi': ''
diff --git a/anmo-admin/src/main.js b/anmo-admin/src/main.js
index 469a94d..8efc29b 100644
--- a/anmo-admin/src/main.js
+++ b/anmo-admin/src/main.js
@@ -12,6 +12,7 @@ import { isAuth } from '@/utils'
import cloneDeep from 'lodash/cloneDeep'
import BaiduMap from 'vue-baidu-map'
import { VueJsonp } from 'vue-jsonp'
+import { serverPaths } from '@/utils/enumData'
Vue.use(VueJsonp)
diff --git a/anmo-admin/src/utils/enumData.js b/anmo-admin/src/utils/enumData.js
new file mode 100644
index 0000000..de2836d
--- /dev/null
+++ b/anmo-admin/src/utils/enumData.js
@@ -0,0 +1,9 @@
+import Vue from 'vue'
+
+export const serverPaths = {
+ // serverUrl : "https://admin.sjajk.com/sqx_fast/",//生产需替换
+ serverUrl : "http://192.168.2.222:8187/sqx_fast/",
+ uploadUrl : this.serverUrl + "alioss/upload",
+ uploadWatermarkUrl : this.serverUrl + "alioss/uploadWatermark",
+ uploadMusicUrl : this.serverUrl + "alioss/uploadMusic",
+}
diff --git a/anmo-admin/src/utils/httpRequest.js b/anmo-admin/src/utils/httpRequest.js
index 90c2b86..64e6083 100644
--- a/anmo-admin/src/utils/httpRequest.js
+++ b/anmo-admin/src/utils/httpRequest.js
@@ -7,6 +7,8 @@ import {
clearLoginInfo
} from '@/utils'
+import { serverPaths } from '@/utils/enumData'
+
const http = axios.create({
timeout: 1000 * 30,
// withCredentials: true,
@@ -45,20 +47,7 @@ http.interceptors.response.use(response => {
* @param {*} actionName action方法名称
*/
http.adornUrl = (actionName) => {
- // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
- // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
- // return 'http://192.168.0.109:8187/sqx_fast/' + actionName
- //return 'http://127.0.0.1:8187/sqx_fast/' + actionName
- //生产环境
- return 'https://admin.sjajk.com/sqx_fast/' + actionName
- //测试环境
- // return "http://192.168.1.169:8187/sqx_fast/" + actionName;
- //客户地址
- // return "http://192.168.110.85:8187/sqx_fast/" + actionName;
- // 后台本地韩玉东
- // return "http://192.168.1.50:8187/sqx_fast/" + actionName;
- //后台本地张聪
- // return "http://192.168.1.48:8187/sqx_fast/" + actionName;
+ return this.serverPaths.serverUrl + actionName;
}
http.adornWss = (actionName) => {
diff --git a/anmo-admin/src/views/allocation/allocationList.vue b/anmo-admin/src/views/allocation/allocationList.vue
index 5001d26..f0263d9 100644
--- a/anmo-admin/src/views/allocation/allocationList.vue
+++ b/anmo-admin/src/views/allocation/allocationList.vue
@@ -403,10 +403,10 @@