fix(仪表板): 仪表板编辑状态点击浏览器回退后仪表板预览界面无法显示问题 (#2941)

Co-authored-by: wangjiahao <1522128093@qq.com>
This commit is contained in:
fit2cloudrd 2022-08-25 14:49:35 +08:00 committed by GitHub
parent e71d6a6b90
commit cb12d7d40c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ export default {
if (this.componentName === 'PanelEdit') {
next(false)
if (confirm(this.$t('panel.edit_leave_tips'))) {
bus.$emit('PanelSwitchComponent', { name: 'PanelMain' })
next()
}
} else {