forked from github/dataease
fix(嵌入式): 嵌入式销毁测试
This commit is contained in:
parent
189c219c3b
commit
a1ab75de64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user