refactor(仪表板): 修复带Tab页的仪表板导出为模板非首页Tab项可能无法显示问题

This commit is contained in:
wangjiahao 2024-07-02 18:35:50 +08:00
parent 2e08a69443
commit 6528f5ad20
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<template :key="tabItem.name" v-for="(tabItem, index) in element.propValue">
<el-tab-pane
class="el-tab-pane-custom"
:lazy="true"
:lazy="isEditMode"
:label="tabItem.title"
:name="tabItem.name"
>

View File

@ -132,7 +132,8 @@ const state = reactive({
templateData: null,
dynamicData: null,
staticResource: null,
snapshot: ''
snapshot: '',
version: null
}
})
@ -266,6 +267,7 @@ const handleFileChange = e => {
state.templateInfo.dynamicData = state.importTemplateInfo['dynamicData']
state.templateInfo.staticResource = state.importTemplateInfo['staticResource']
state.templateInfo['nodeType'] = 'template'
state.templateInfo['version'] = state.importTemplateInfo['version']
}
reader.readAsText(file)
}