Selaa lähdekoodia

调整开发环境下的代理配置

code4eat 2 vuotta sitten
vanhempi
commit
f2368e5d1b
2 muutettua tiedostoa jossa 15 lisäystä ja 14 poistoa
  1. 3 3
      config/proxy.ts
  2. 12 11
      src/app.tsx

+ 3 - 3
config/proxy.ts

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2022-01-07 10:00:52
- * @LastEditTime: 2023-04-02 15:13:10
+ * @LastEditTime: 2023-04-20 10:39:31
  * @LastEditors: code4eat awesomedema@gmail.com
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: /KC-MiddlePlatform/config/proxy.ts
@@ -26,9 +26,9 @@ const proxy: { [key: string]: any } = {
       pathRewrite: { '^/api': '' },
     },
     '/view': {
-      target: 'http://47.97.190.5:8807/',
+      target: 'http://47.97.190.5:8807/view',
       changeOrigin: true,
-      pathRewrite: { '^/view': '' },
+      // pathRewrite: { '^/view': '' },
     },
   },
   mock: {

+ 12 - 11
src/app.tsx

@@ -243,19 +243,20 @@ export const qiankun = fetch('/config').then(() => ({
     },
     {
       name: 'reviewMana', // 唯一 id
-      entry: '//47.97.190.5:8807', //线上
+      //entry: '//47.97.190.5:8807', //线上
+      entry: '//localhost:8804', // 开发
 
     },
-    {
-      name: 'budgetManaSystem', // 唯一 id
-      //entry: '//localhost:8001'
-      entry: '//112.124.59.133:5000/perform/', // 开发
-    },
-    {
-      name: 'PFMBackC', // 唯一 id
-      entry: '//112.124.59.133:5000/pfmManager/index.html'
-      //entry: '//112.124.59.133:5000/perform/', // 开发
-    },
+    // {
+    //   name: 'budgetManaSystem', // 唯一 id
+    //   //entry: '//localhost:8001'
+    //   entry: '//112.124.59.133:5000/perform/', // 开发
+    // },
+    // {
+    //   name: 'PFMBackC', // 唯一 id
+    //   entry: '//112.124.59.133:5000/pfmManager/index.html'
+    //   //entry: '//112.124.59.133:5000/perform/', // 开发
+    // },
   ],
   // 完整生命周期钩子请看 https://qiankun.umijs.org/zh/api/#registermicroapps-apps-lifecycles
   lifeCycles: {