Kaynağa Gözat

修复快速入口/最近访问点击无效

code4eat 3 yıl önce
ebeveyn
işleme
2d49d03992
4 değiştirilmiş dosya ile 17 ekleme ve 17 silme
  1. 6 6
      config/proxy.ts
  2. 4 4
      src/app.tsx
  3. 5 5
      src/components/topBar/index.tsx
  4. 2 2
      src/pages/index/index.tsx

+ 6 - 6
config/proxy.ts

@@ -1,14 +1,14 @@
 /*
  * @Author: your name
  * @Date: 2022-01-07 10:00:52
- * @LastEditTime: 2022-09-02 16:42:10
+ * @LastEditTime: 2022-09-07 16:33:18
  * @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
  */
 
-//118.31.245.65   线上
-//112.124.59.133  测试
+//118.31.245.65  7004 线上
+//112.124.59.133 7001 测试
 
 //192.168.50.190:7001
 
@@ -16,18 +16,18 @@ const proxy: { [key: string]: any } = {
   dev: {
     '/master': {
       //target: 'http://192.168.51.39:7001/',
-      target: 'http://112.124.59.133:7001/',
+      target: 'http://118.31.245.65:7005/',
       changeOrigin: true,
       pathRewrite: { '^/master': '' },
     },
     '/api': {
-      target: 'http://112.124.59.133:8083/',
+      target: 'http://118.31.245.65:8083/',
       //target: 'http://112.124.59.133:8083/',
       changeOrigin: true,
       pathRewrite: { '^/api': '' },
     },
     '/view': {
-      target: 'http://112.124.59.133:8085/',
+      target: 'http://118.31.245.65:8085/',
       //target: 'http://112.124.59.133:8083/',
       changeOrigin: true,
       pathRewrite: { '^/view': '' },

+ 4 - 4
src/app.tsx

@@ -232,14 +232,14 @@ export const qiankun = fetch('/config').then(() => ({
     {
       name: 'app1', // 唯一 id
       //entry: '//112.124.59.133:8804',  //测试
-      // entry: '//118.31.245.65:8804', //线上
+      entry: '//118.31.245.65:8804', //线上
       //entry:'//192.168.50.143:8804',//本机
-      entry: '//localhost:8804', // 开发
+      //entry: '//localhost:8804', // 开发
     },
     {
       name: 'reviewMana', // 唯一 id
-      entry: '//112.124.59.133:8807',  //测试
-      // entry: '//118.31.245.65:8804', //线上
+      //entry: '//112.124.59.133:8807',  //测试
+      entry: '//118.31.245.65:8807', //线上
       //entry:'//192.168.50.143:8804',//本机
       //entry: '//localhost:8804', // 开发
     },

+ 5 - 5
src/components/topBar/index.tsx

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-11-16 09:12:37
- * @LastEditTime: 2022-09-07 11:25:51
+ * @LastEditTime: 2022-09-08 09:23:39
  * @LastEditors: code4eat awesomedema@gmail.com
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: /KC-MiddlePlatform/src/pages/index/components/topBar/index.tsx
@@ -200,11 +200,11 @@ const TopBar: React.FC<TopBarType> = (props) => {
         }
       }
 
-      // if (_panelData && _panelData.length > 0 && _panelData[blockIndex].child) {
-      //   setSystemTabs(_panelData[blockIndex].child[channelIndex].child);  //恢复体系列表
-      // }
+      if (_panelData && _panelData.length > 0 && _panelData[blockIndex].child) {
+        setSystemTabs(_panelData[blockIndex].child[channelIndex].child);  //恢复体系列表
+      }
 
-      // _systemTabClickHandle(_currentSelectedTabFromLocal);  //恢复选中的tab
+      _systemTabClickHandle(_currentSelectedTabFromLocal);  //恢复选中的tab
   
 
     }

+ 2 - 2
src/pages/index/index.tsx

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-11-10 09:33:30
- * @LastEditTime: 2022-07-14 16:41:29
+ * @LastEditTime: 2022-09-08 09:06:07
  * @LastEditors: code4eat awesomedema@gmail.com
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: /KC-MiddlePlatform/src/pages/index.tsx
@@ -124,7 +124,7 @@ const IndexPage: React.FC<IndexPageType> = ({ location }) => {
                   <div className='staffBaseInfo'>
                     <div className='staffBaseInfoSpan'>
                       <span className='spanName'>人员工号</span>
-                      <span className='spanValue'>{userInfo?.id?userInfo?.id:'-'}</span>
+                      <span className='spanValue'>{userInfo?.account?userInfo?.account:'-'}</span>
                     </div>
                     <Divider type="vertical" className='Divider' />
                     <div className='staffBaseInfoSpan'>