forked from github/dataease
fix: 修复新建时切换Tab删除资源有异常提示问题
This commit is contained in:
parent
7ae7424b6e
commit
9c9c8110b3
@ -18,8 +18,10 @@ import { useCache } from '@/hooks/web/useCache'
|
||||
const { wsCache } = useCache()
|
||||
const eventCheck = e => {
|
||||
if (e.key === 'panel-weight' && !compareStorage(e.oldValue, e.newValue)) {
|
||||
const { resourceId } = window.DataEaseBi || router.currentRoute.value.query
|
||||
check(wsCache.get('panel-weight'), resourceId)
|
||||
const { resourceId, opt } = window.DataEaseBi || router.currentRoute.value.query
|
||||
if (!(opt && opt === 'create')) {
|
||||
check(wsCache.get('panel-weight'), resourceId)
|
||||
}
|
||||
}
|
||||
}
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
|
@ -29,8 +29,10 @@ import { center } from '@antv/g2plot/lib/plots/sankey/sankey'
|
||||
const { wsCache } = useCache()
|
||||
const eventCheck = e => {
|
||||
if (e.key === 'screen-weight' && !compareStorage(e.oldValue, e.newValue)) {
|
||||
const { dvId } = window.DataEaseBi || router.currentRoute.value.query
|
||||
check(wsCache.get('screen-weight'), dvId)
|
||||
const { dvId, opt } = window.DataEaseBi || router.currentRoute.value.query
|
||||
if (!(opt && opt === 'create')) {
|
||||
check(wsCache.get('screen-weight'), dvId)
|
||||
}
|
||||
}
|
||||
}
|
||||
const mainCanvasCoreRef = ref(null)
|
||||
|
Loading…
Reference in New Issue
Block a user