Commit 3bfc9ff2 by zhaochengxiang

bug fix

parent 86f88857
...@@ -146,7 +146,7 @@ const AssetManageTree = (props) => { ...@@ -146,7 +146,7 @@ const AssetManageTree = (props) => {
const index = (data??[]).findIndex(item => item.type === _templateType) const index = (data??[]).findIndex(item => item.type === _templateType)
if (index !== -1) { if (index !== -1) {
onTemplateChange?.(data[index]) listSubject.next({ msg: 'templateChange' })
} }
onSelect?.('', '', null, false) onSelect?.('', '', null, false)
...@@ -788,7 +788,7 @@ const AssetManageTree = (props) => { ...@@ -788,7 +788,7 @@ const AssetManageTree = (props) => {
const index = (templates??[]).findIndex(item => item.type === val) const index = (templates??[]).findIndex(item => item.type === val)
if (index !== -1) { if (index !== -1) {
onTemplateChange?.(templates[index]) listSubject.next({ msg: 'templateChange' })
} }
setCurrentDirId(); setCurrentDirId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment