diff --git a/mob-runner/public/environments/environment.js b/mob-runner/public/environments/environment.js index 6922137df0fddc534bb2c8b6261cf6534a3e3436..5dd2536acdb68a16a46160e0255aab85d723a78f 100644 --- a/mob-runner/public/environments/environment.js +++ b/mob-runner/public/environments/environment.js @@ -5,34 +5,10 @@ window.Environment = { logLevel: 'TRACE', BaseUrl: '/api', isMob: true, - pluginBaseUrl: 'http://172.16.240.221', + pluginBaseUrl: 'https://npmjs.ibizlab.cn', // 应用请求基础路径 - // appId: '/pms__portalwebapp', - // appId: 'centralstudio__centralstudio', - // mockDcSystemId: 'demo-centralstudio', - // mockDcSystemId: '941127f9d839f87308f1c4db3b0a2de4', - // appId: 'trainsys__mob', - // mockDcSystemId: '84847aa970ba3db7bbe00754aed3888d', - // appId: 'sztrainsys__mob', - // mockDcSystemId: 'ac2720c74d5456b40e24aeaf6ffffbd2', - // appId: 'ibizdemoold__sample', - // mockDcSystemId: 'ibizdemoold', - // appId: 'ls__lsmob', - // mockDcSystemId: 'LS', - // appId: 'pms__sclpmsmob', - // mockDcSystemId: 'pms', - // appId: 'demosys__mobvue3', - // mockDcSystemId: 'demosys', appId: 'ibizplm__plmmob', mockDcSystemId: 'ibizplm', - // appId: 'darm__mob', - // mockDcSystemId: 'darm', - // 创新孵化 - // appId: 'cxfhmgmt__cxfhappmob', - // mockDcSystemId: 'cxfhmgmt', - // 公司领导日程安排 - // appId: 'gsldrcapmgmt__gsldrcapappmob', - // mockDcSystemId: 'gsldrcapmgmt', // 应用标题 AppTitle: '', hub: false, diff --git a/mob-runner/vite.config.ts b/mob-runner/vite.config.ts index e6851de49eaf6ab7c31e74f1faf1febf8bb01674..85acb06e7fcea56a751e966e6bc35cf7eada33b9 100644 --- a/mob-runner/vite.config.ts +++ b/mob-runner/vite.config.ts @@ -93,79 +93,10 @@ export default defineConfig({ server: { host: '0.0.0.0', proxy: { - '/api/darm__mob': { - target: 'http://172.16.103.146:30103', + '/api/ibizplm__plmmob': { + target: 'https://plm.ibizlab.cn', changeOrigin: true, }, - '/api/sztrainsys__mob': { - rewrite(path) { - return path.replace('/api', ''); - }, - target: 'http://172.16.240.140:20086', - changeOrigin: true, - }, - '/api/ls__lsmob/remotemodel': { - rewrite(path) { - return path.replace('/api/ls__lsmob/remotemodel', '/ls__lsmob/model'); - }, - target: 'http://localhost:20003', - changeOrigin: true, - }, - '/api/ls__lsmob': { - rewrite(path) { - return path.replace('/api/ls__lsmob', '/api'); - }, - target: 'http://localhost:8081', - changeOrigin: true, - }, - '/api/pms__sclpmsmob': { - target: 'http://172.16.103.158:30164/', - changeOrigin: true, - }, - '/api/demosys__mobvue3/portal/mqtt/mqtt': { - rewrite(path) { - return path.replace('/api', ''); - }, - target: 'ws://172.16.103.169:30350', - changeOrigin: true, - }, - '/api/demosys__mobvue3': { - rewrite(path) { - return path.replace('/api', '/api'); - }, - target: 'http://172.16.103.169:30350', - changeOrigin: true, - }, - '/api/cxfhmgmt__cxfhappmob': { - rewrite(path) { - return path.replace('/api', ''); - }, - target: 'http://172.16.103.158:30086', - changeOrigin: true, - }, - '/api/qdehr__qdehrapp/portal/mqtt/mqtt': { - rewrite(path) { - return path.replace('/api', ''); - }, - ws: true, - target: 'ws://172.16.240.140:46020', - changeOrigin: true, - }, - '/api/qdehr__qdehrapp': { - rewrite(path) { - return path.replace('/api', ''); - }, - target: 'http://172.16.240.140:46020', - changeOrigin: true, - }, - '/api/gsldrcapmgmt__gsldrcapappmob': { - target: 'http://172.16.103.158:30200', - changeOrigin: true, - }, - '/api/ibizplm__plmmob':{ - target: 'http://172.16.220.130:30515', - changeOrigin: true, - } }, cors: true, fs: { @@ -180,9 +111,9 @@ export default defineConfig({ }, }, plugins: [ - eslint({ - include: 'src/**/*.{ts,tsx,js,jsx}', - }), + // eslint({ + // include: 'src/**/*.{ts,tsx,js,jsx}', + // }), vue({ template: { compilerOptions: {