fix: 修复仪表板缩放模式切换为按组件比例缩放,保存发布后再次查看不生效问题 #16885 (#16942)

This commit is contained in:
王嘉豪
2025-09-10 13:33:27 +08:00
committed by GitHub
parent 7f1d034978
commit 921f3f0beb

View File

@@ -156,7 +156,7 @@ const dataVKeepRadio = computed(() => {
// 仪表板是否跟随宽度缩放 非全屏 full 都需要保持宽高比例
const dashboardScaleWithWidth = computed(() => {
return isDashboard() && screenAdaptor.value === 'withWidth'
return isDashboard() && canvasStyleData.value?.dashboardAdaptor === 'withWidth'
})
const isReport = computed(() => {
return !!router.currentRoute.value.query?.report