调整为生产环境
This commit is contained in:
parent
e34e032aeb
commit
aaf82dad5e
|
@ -14,9 +14,8 @@ module.exports = {
|
||||||
// 代理列表, 是否开启代理通过[./dev.env.js]配置
|
// 代理列表, 是否开启代理通过[./dev.env.js]配置
|
||||||
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
|
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
|
||||||
'/proxyApi': {
|
'/proxyApi': {
|
||||||
// target: "https://sausers.blxinchuang.com/sqx_fast/",
|
// target: "http://localhost:8187/sqx_fast/",
|
||||||
target: "http://localhost:8187/sqx_fast/",
|
target: "https://admin.sjajk.com/sqx_fast/", //生产需替换
|
||||||
// target: "https://admin.sjajk.com/sqx_fast/", //生产需替换
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/proxyApi': ''
|
'^/proxyApi': ''
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
// const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换
|
const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换
|
||||||
const serverUrl = "http://localhost:8187/sqx_fast/";
|
// const serverUrl = "http://localhost:8187/sqx_fast/";
|
||||||
// const serverUrl = "http://120.46.52.165/sqx_fast/";
|
|
||||||
// const serverUrl = "https://sausers.blxinchuang.com/sqx_fast/";
|
|
||||||
|
|
||||||
export const serverPaths = {
|
export const serverPaths = {
|
||||||
serverUrl ,
|
serverUrl ,
|
||||||
|
|
|
@ -53,7 +53,6 @@ http.adornUrl = (actionName) => {
|
||||||
http.adornWss = (actionName) => {
|
http.adornWss = (actionName) => {
|
||||||
// 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
|
// 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
|
||||||
// return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
|
// return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
|
||||||
// return 'wss://sausers.blxinchuang.com/wss/' + actionName
|
|
||||||
return 'wss://admin.sjajk.com/wss/' + actionName //生产需替换
|
return 'wss://admin.sjajk.com/wss/' + actionName //生产需替换
|
||||||
// return 'https://anmoadmin5.0.xianmaxiong.comsqx_fast/' + actionName
|
// return 'https://anmoadmin5.0.xianmaxiong.comsqx_fast/' + actionName
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue