fix(嵌入式): 嵌入式销毁测试

This commit is contained in:
dataeaseShu 2024-08-16 09:49:10 +08:00
parent 189c219c3b
commit a1ab75de64

View File

@ -168,20 +168,14 @@ class DataEaseBi {
}
destroy() {
import('@/store/modules/user').then(res => {
const userStore = res.userStore()
userStore.setUser()
})
const embeddedStore = useEmbedded()
embeddedStore.setType(null)
embeddedStore.setBusiFlag(null)
embeddedStore.setOuterParams(null)
embeddedStore.setToken(null)
embeddedStore.setBaseUrl(null)
embeddedStore.setDvId(null)
embeddedStore.setPid(null)
embeddedStore.setChartId(null)
embeddedStore.setResourceId(null)
embeddedStore.clearState()
console.log('this.vm1', this.vm)
this.vm.unmount()
this.type = null