Ver Fonte

电子病历配置

DESKTOP-0GD05B0\Administrator há 2 anos atrás
pai
commit
27b714b48b
3 ficheiros alterados com 4 adições e 2 exclusões
  1. 1 0
      .gitignore
  2. 1 0
      package.json
  3. 2 2
      vite.config.js

+ 1 - 0
.gitignore

@@ -25,3 +25,4 @@ pnpm-debug.log*
 .env.development
 webstorm.config.js
 .gitignore
+.env.localhost

+ 1 - 0
package.json

@@ -7,6 +7,7 @@
     "build": "vite build --mode=production",
     "build:stag": "vite build --mode=staging",
     "build:dev": "vite build --mode=dev",
+    "build:localhost": "vite build --mode=localhost",
     "serve": "vite preview"
   },
   "dependencies": {

+ 2 - 2
vite.config.js

@@ -49,9 +49,9 @@ export default defineConfig({
     server: {
         host: '0.0.0.0',
         proxy: {
-            '/emr/runtime': {
+            '/emr': {
                 //这里配置运行时服务地址
-                target: 'http://172.16.32.125:8001',
+                target: 'http://172.16.32.125:8001/emr',
                 secure: false, //如果运行时服务是https,此处配置为true
                 changeOrigin: true, //支持跨域调用,这里配置为true
             },