From 3df2d3624c6b768d29670b537f8d6a71d3ef122c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 12 四月 2020 22:04:53 +0800 Subject: [PATCH] 2020-04-12 --- src/templates/zshare/modalform/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/zshare/modalform/index.jsx b/src/templates/zshare/modalform/index.jsx index d81a7e0..f8396a3 100644 --- a/src/templates/zshare/modalform/index.jsx +++ b/src/templates/zshare/modalform/index.jsx @@ -69,7 +69,7 @@ } }) - let _options = modalTypeOptions[type] + let _options = JSON.parse(JSON.stringify(modalTypeOptions[type])) if ((type === 'multiselect' || type === 'select' || type === 'link') && resourceType === '0') { // 閫夋嫨绫诲瀷銆佽嚜瀹氫箟璧勬簮 _options = [..._options, 'options', 'quick'] @@ -128,7 +128,7 @@ openTypeChange = (key, value) => { if (key === 'type') { - let _options = modalTypeOptions[value] + let _options = JSON.parse(JSON.stringify(modalTypeOptions[value])) if ((value === 'multiselect' || value === 'select' || value === 'link') && this.state.resourceType === '0') { // 閫夋嫨绫诲瀷銆佽嚜瀹氫箟璧勬簮 _options = [..._options, 'options', 'quick'] @@ -241,7 +241,7 @@ const { openType } = this.state let value = e.target.value if (key === 'resourceType') { - let _options = modalTypeOptions[openType] + let _options = JSON.parse(JSON.stringify(modalTypeOptions[openType])) if (value === '0') { _options = [..._options, 'options', 'quick'] -- Gitblit v1.8.0