forked from github/dataease
refactor(仪表板): 修复带Tab页的仪表板导出为模板非首页Tab项可能无法显示问题
This commit is contained in:
parent
2e08a69443
commit
6528f5ad20
@ -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"
|
||||
>
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user