Merge pull request #13082 from dataease/pr@dev-v2@fix_copy-mult
fix(仪表板、数据大屏): 修复通过复制进入编辑界面时首次复用无法预览问题
This commit is contained in:
commit
cb7aacfaaa
@ -220,7 +220,12 @@ const getTree = async () => {
|
||||
const nodeData = interactiveData.treeNodes
|
||||
rootManage.value = interactiveData.rootManage
|
||||
anyManage.value = interactiveData.anyManage
|
||||
if (dvInfo.value && dvInfo.value.id && !JSON.stringify(nodeData).includes(dvInfo.value.id)) {
|
||||
if (
|
||||
dvInfo.value &&
|
||||
dvInfo.value.id &&
|
||||
!JSON.stringify(nodeData).includes(dvInfo.value.id) &&
|
||||
showPosition.value !== 'multiplexing'
|
||||
) {
|
||||
dvMainStore.resetDvInfo()
|
||||
}
|
||||
if (nodeData.length && nodeData[0]['id'] === '0' && nodeData[0]['name'] === 'root') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user