From e4da07b71dddb3b01b58ecaf21ae5b7052e98b7d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 26 八月 2020 16:01:01 +0800
Subject: [PATCH] 2020-08-26

---
 src/menu/menuform/index.jsx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/menu/menuform/index.jsx b/src/menu/menuform/index.jsx
index 9f714ff..16bbb7e 100644
--- a/src/menu/menuform/index.jsx
+++ b/src/menu/menuform/index.jsx
@@ -1,5 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
+import { fromJS } from 'immutable'
 import { Form, Row, Col, Input, Select, notification } from 'antd'
 
 import Api from '@/api'
@@ -14,6 +15,7 @@
     MenuName: PropTypes.string,
     MenuNo: PropTypes.string,
     parentId: PropTypes.string,
+    initMenuList: PropTypes.func,
     updateConfig: PropTypes.func
   }
 
@@ -56,6 +58,8 @@
           }
         })
 
+        this.props.initMenuList(fromJS(menulist).toJS())
+
         this.setState({
           fstMenuId: result.FstIDSeleted,
           menulist,

--
Gitblit v1.8.0