fix: 修复在仪表板文件夹上应用模板创建仪表板,保存时没有自动选择文件夹问题

This commit is contained in:
wangjiahao 2023-12-11 13:08:56 +08:00
parent e2503d3cf7
commit f76ca3f250

View File

@ -428,7 +428,11 @@ const apply = () => {
templateData.type === 'dataV'
? '#/dvCanvas?opt=create&createType=template'
: '#/dashboard?opt=create&createType=template'
window.open(baseUrl, '_blank')
if (state.pid) {
window.open(baseUrl + `&pid=${state.pid}`, '_blank')
} else {
window.open(baseUrl, '_blank')
}
})
.catch(() => {
state.loading = false