mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 09:48:10 +08:00
fix: 修复在仪表板文件夹上应用模板创建仪表板,保存时没有自动选择文件夹问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user