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 WithinSERVEICE='http://192.168.1.252:8001'
// export const ExternalSERVEICE='http://192.168.10.241:5013' // export const ExternalSERVEICE='http://192.168.10.241:5013'
// export const WithinSERVEICE='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' ...@@ -14,7 +13,5 @@ export const AIAPIWithinSERVEICE='http://106.3.97.198:20050'
// export const ExternalSERVEICE='http://localhost:5013' // export const ExternalSERVEICE='http://localhost:5013'
// export const WithinSERVEICE='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" export const CURRLOGO="LOGO_gangyi.png"
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { createStore } from 'vuex' import { createStore } from 'vuex'
import { orgFn } from '@/api/org' import { orgFn } from '@/api/org'
import { homeGetOrg } from '../dataJson/common/common.js' 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' } const keys = { USER: 'user', ENTERPRISE:'enterprise', SERVEICE:'SERVEICE', AIAPISERVEICE:'AIAPISERVEICE' }
function getUserInfo(state) { function getUserInfo(state) {
...@@ -28,7 +28,7 @@ function getSERVEICE(state){ ...@@ -28,7 +28,7 @@ function getSERVEICE(state){
if (ip) { if (ip) {
state.SERVEICE = ip; state.SERVEICE = ip;
}else{ }else{
state.SERVEICE = WithinSERVEICE; // state.SERVEICE = WithinSERVEICE;
} }
return state.SERVEICE; return state.SERVEICE;
} }
...@@ -61,11 +61,11 @@ const store = createStore({ ...@@ -61,11 +61,11 @@ const store = createStore({
}, },
mutations: { mutations: {
setSERVEICE(state, ip){ setSERVEICE(state, ip){
if(ip === "111.160.132.74" || ip === "218.69.97.198"){ if(ip === "111.160.132.74"){
state.SERVEICE = WithinSERVEICE; // state.SERVEICE = WithinSERVEICE;
state.AIAPISERVEICE = AIAPIWithinSERVEICE; state.AIAPISERVEICE = AIAPIWithinSERVEICE;
}else{ }else{
state.SERVEICE = ExternalSERVEICE; // state.SERVEICE = ExternalSERVEICE;
state.AIAPISERVEICE = AIAPIExternalSERVEICE; state.AIAPISERVEICE = AIAPIExternalSERVEICE;
} }
......
const port='8001'; 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 TEST_SERVEICE='http://192.168.1.2:5013/'
export const SERVEICE='http://192.168.1.2:5013/' export const SERVEICE='http://192.168.1.2:5013/'
...@@ -25,19 +25,19 @@ export default defineConfig({ ...@@ -25,19 +25,19 @@ export default defineConfig({
port: 5013, port: 5013,
open: true, open: true,
proxy: { proxy: {
'/api': { // '/api': {
// target: 'http://192.168.1.252:8001/', // // target: 'http://192.168.1.252:8001/',
target: 'http://218.69.97.198:8001/', // 目标服务器地址 // target: 'http://218.69.97.198:8001/', // 目标服务器地址
// target: 'http://localhost:5013/', // 目标服务器地址 // // target: 'http://localhost:5013/', // 目标服务器地址
changeOrigin: true, // 允许跨域 // changeOrigin: true, // 允许跨域
}, // },
'/AIapi': { // '/AIapi': {
target: 'http://106.3.97.198:20050/', // target: 'http://106.3.97.198:20050/',
//target: 'http://192.168.0.9:8099/', // 目标服务器地址 // //target: 'http://192.168.0.9:8099/', // 目标服务器地址
//target: 'http://localhost:5013/', // 目标服务器地址 // //target: 'http://localhost:5013/', // 目标服务器地址
changeOrigin: true, // 允许跨域 // changeOrigin: true, // 允许跨域
rewrite: (path) => path.replace(/^\/AIapi/, ''), //路径重写,把'/ddapi'替换为'' // 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