Commit 5f6468c7 authored by liwei's avatar liwei

去掉了外部接口

parent 32bc95a5
// export const ExternalSERVEICE='http://218.69.97.198:8001'
// export const WithinSERVEICE='http://192.168.1.252:8001'
// export const ExternalSERVEICE='http://192.168.10.241:5013'
// export const WithinSERVEICE='http://192.168.10.241:5013'
......@@ -14,7 +13,5 @@ export const AIAPIWithinSERVEICE='http://106.3.97.198:20050'
// export const ExternalSERVEICE='http://localhost:5013'
// export const WithinSERVEICE='http://localhost:5013'
export const ExternalSERVEICE='http://218.69.97.198:8001'
export const WithinSERVEICE='http://218.69.97.198:8001'
export const CURRLOGO="LOGO_gangyi.png"
......@@ -2,7 +2,7 @@
import { createStore } from 'vuex'
import { orgFn } from '@/api/org'
import { homeGetOrg } from '../dataJson/common/common.js'
import {AIAPIExternalSERVEICE, AIAPIWithinSERVEICE, ExternalSERVEICE, WithinSERVEICE} from '../../public/config'
import {AIAPIExternalSERVEICE, AIAPIWithinSERVEICE} from '../../public/config'
const keys = { USER: 'user', ENTERPRISE:'enterprise', SERVEICE:'SERVEICE', AIAPISERVEICE:'AIAPISERVEICE' }
function getUserInfo(state) {
......@@ -28,7 +28,7 @@ function getSERVEICE(state){
if (ip) {
state.SERVEICE = ip;
}else{
state.SERVEICE = WithinSERVEICE;
// state.SERVEICE = WithinSERVEICE;
}
return state.SERVEICE;
}
......@@ -61,11 +61,11 @@ const store = createStore({
},
mutations: {
setSERVEICE(state, ip){
if(ip === "111.160.132.74" || ip === "218.69.97.198"){
state.SERVEICE = WithinSERVEICE;
if(ip === "111.160.132.74"){
// state.SERVEICE = WithinSERVEICE;
state.AIAPISERVEICE = AIAPIWithinSERVEICE;
}else{
state.SERVEICE = ExternalSERVEICE;
// state.SERVEICE = ExternalSERVEICE;
state.AIAPISERVEICE = AIAPIExternalSERVEICE;
}
......
const port='8001';
//export const SERVEICE='http://218.69.97.198:8001'
//'http://218.69.97.198:8001'
//export const TEST_SERVEICE='http://192.168.1.2:5013/'
export const SERVEICE='http://192.168.1.2:5013/'
......@@ -25,19 +25,19 @@ export default defineConfig({
port: 5013,
open: true,
proxy: {
'/api': {
// target: 'http://192.168.1.252:8001/',
target: 'http://218.69.97.198:8001/', // 目标服务器地址
// target: 'http://localhost:5013/', // 目标服务器地址
changeOrigin: true, // 允许跨域
},
'/AIapi': {
target: 'http://106.3.97.198:20050/',
//target: 'http://192.168.0.9:8099/', // 目标服务器地址
//target: 'http://localhost:5013/', // 目标服务器地址
changeOrigin: true, // 允许跨域
rewrite: (path) => path.replace(/^\/AIapi/, ''), //路径重写,把'/ddapi'替换为''
}
// '/api': {
// // target: 'http://192.168.1.252:8001/',
// target: 'http://218.69.97.198:8001/', // 目标服务器地址
// // target: 'http://localhost:5013/', // 目标服务器地址
// changeOrigin: true, // 允许跨域
// },
// '/AIapi': {
// target: 'http://106.3.97.198:20050/',
// //target: 'http://192.168.0.9:8099/', // 目标服务器地址
// //target: 'http://localhost:5013/', // 目标服务器地址
// changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/AIapi/, ''), //路径重写,把'/ddapi'替换为''
// }
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment