浏览代码

修复系统导航菜单添加bug

code4eat 2 年之前
父节点
当前提交
53d2f7cbd0
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 3 3
      config/proxy.ts
  2. 2 2
      src/app.tsx
  3. 4 4
      src/pages/platform/setting/systemNavMana/index.tsx

+ 3 - 3
config/proxy.ts

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2022-01-07 10:00:52
- * @LastEditTime: 2023-04-17 11:15:10
+ * @LastEditTime: 2023-04-18 10:39:00
  * @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
@@ -16,8 +16,8 @@ const proxy: { [key: string]: any } = {
   dev: {
     //绩效管理
     '/gateway': {
-      target: 'http://47.96.149.190:5000',
-      //target: 'http://118.31.245.65:7005/',
+      //target: 'http://47.96.149.190:5000',
+      target: 'http://120.27.235.181:5000',
       changeOrigin: true,
       // pathRewrite: { '^/master': '' },
     },

+ 2 - 2
src/app.tsx

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

+ 4 - 4
src/pages/platform/setting/systemNavMana/index.tsx

@@ -4,7 +4,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2022-12-16 09:42:52
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-17 16:08:23
+ * @LastEditTime: 2023-04-18 11:00:35
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -560,7 +560,7 @@ const MonthlyInfoCheck: React.FC = () => {
                 />
                 <ProFormDependency name={['type']}>
                     {
-                        ({ type }) => type == 2 && (
+                        ({ type }) => type == 1 && (
                             <ProFormRadio.Group
                                 name="isHomepage"
                                 label="是否首页:"
@@ -586,7 +586,7 @@ const MonthlyInfoCheck: React.FC = () => {
 
                 <ProFormDependency name={['type']}>
                     {
-                        ({ type }) => type == 2 && (
+                        ({ type }) => type == 1 && (
                             <ProForm.Group colProps={{ span: 12 }} align='start'>
                                 <ProFormSelect
                                     name="contentType"
@@ -629,7 +629,7 @@ const MonthlyInfoCheck: React.FC = () => {
 
                 <ProFormDependency name={['type']}>
                     {
-                        ({ type }) => type == 2 && (
+                        ({ type }) => type == 1 && (
                             <ProFormText
                                 name="url"
                                 label="URL:"