Sfoglia il codice sorgente

调整首页报告展示的id获取方式

code4eat 2 anni fa
parent
commit
5e624dd860
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      src/app.tsx
  2. 2 2
      src/pages/index/index.tsx

+ 2 - 2
src/app.tsx

@@ -248,8 +248,8 @@ export const qiankun = fetch('/config').then(() => ({
     // },
     {
       name: 'budgetManaSystem', // 唯一 id
-      entry: '//localhost:8001',
-      //entry: '//120.27.235.181:5000/perform/',  //开发
+      //entry: '//localhost:8001',
+      entry: '//120.27.235.181:5000/perform/',  //开发
       //entry: '//47.96.149.190:5000/perform/', //演示
     },
     {

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

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-11-10 09:33:30
- * @LastEditTime: 2023-04-13 18:25:35
+ * @LastEditTime: 2023-04-14 10:31:27
  * @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
@@ -101,7 +101,7 @@ const IndexPage: React.FC<IndexPageType> = ({ location }) => {
     const resp = await getAllParams();
 
     if (resp) {
-      const needItem = resp.filter((a: any) => a.id == 31);
+      const needItem = resp.filter((a: any) => a.code == '1644270043527254016');
       const userData = localStorage.getItem('userData');
       let token = '';
       if (userData) {