From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 十一月 2020 21:56:42 +0800
Subject: [PATCH] 2020-11-26

---
 src/views/menudesign/menuform/index.jsx |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/views/menudesign/menuform/index.jsx b/src/views/menudesign/menuform/index.jsx
index a1d10bf..b9a5833 100644
--- a/src/views/menudesign/menuform/index.jsx
+++ b/src/views/menudesign/menuform/index.jsx
@@ -1,6 +1,5 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { fromJS } from 'immutable'
 import { Form, Row, Col, Input, Select, notification, Radio, Icon, Tooltip, InputNumber } from 'antd'
 
 import Api from '@/api'
@@ -15,7 +14,6 @@
     MenuName: PropTypes.string,
     MenuNo: PropTypes.string,
     parentId: PropTypes.string,
-    initMenuList: PropTypes.func,
     updateConfig: PropTypes.func
   }
 
@@ -26,7 +24,7 @@
   }
 
   UNSAFE_componentWillMount () {
-    const { MenuId } = this.props
+    const { MenuId, config } = this.props
     let _param = {func: 's_get_pc_menus', systemType: options.sysType, debug: 'Y'}
     if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'production') {
       _param.linkurl = window.GLOB.linkurl
@@ -89,8 +87,8 @@
             smenulist = item.children
           }
         })
-
-        this.props.initMenuList({fstMenuList: fromJS(menulist).toJS(), fstMenuId: thdMenu ? thdMenu.FstId : ''})
+        sessionStorage.setItem('fstMenuList', JSON.stringify(menulist))
+        this.props.updateConfig({...config, fstMenuId: thdMenu ? thdMenu.FstId : ''})
 
         this.setState({
           fstMenuId: thdMenu ? thdMenu.FstId : '',

--
Gitblit v1.8.0