Merge pull request #9871 from dataease/pr@dev-v2@fix_outer-params

fix(仪表板): 修复新建仪表板未保存时这个外部参数保存问题
This commit is contained in:
王嘉豪 2024-05-27 11:36:15 +08:00 committed by GitHub
commit 3275b898d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,6 +285,14 @@ const batchOptStatusChange = value => {
}
const openOuterParamsSet = () => {
if (componentData.value.length === 0) {
ElMessage.warning('当前仪表板为空,请先添加组件')
return
}
if (!dvInfo.value.id) {
ElMessage.warning('请先保存当前页面')
return
}
outerParamsSetRef.value.optInit()
}