From c3e8e482f39fcc81397dcc591c67d6483936e4c3 Mon Sep 17 00:00:00 2001 From: Cano1997 <58964671+Cano1997@users.noreply.github.com> Date: Fri, 25 Apr 2025 19:32:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=BC=80=E6=BA=90?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mob-runner/public/environments/environment.js | 26 +----- mob-runner/vite.config.ts | 79 ++----------------- 2 files changed, 6 insertions(+), 99 deletions(-) diff --git a/mob-runner/public/environments/environment.js b/mob-runner/public/environments/environment.js index 6922137..5dd2536 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 e6851de..85acb06 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: { -- Gitee