Commit 69caf6f6 by zhaochengxiang

bug fix

parent 00515ee2
......@@ -147,6 +147,7 @@ const AssetManageTree = (props) => {
const index = (data??[]).findIndex(item => item.type === _templateType)
if (index !== -1) {
listSubject.next({ msg: 'templateChange' })
onTemplateChange?.(data[index])
}
onSelect?.('', '', null, false)
......@@ -789,6 +790,7 @@ const AssetManageTree = (props) => {
const index = (templates??[]).findIndex(item => item.type === val)
if (index !== -1) {
listSubject.next({ msg: 'templateChange' })
onTemplateChange?.(templates[index])
}
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