Merge pull request #10111 from dataease/pr@dev-v2_st

fix(xpack): 路由跳转失败
This commit is contained in:
dataeaseShu 2024-06-05 15:31:15 +08:00 committed by GitHub
commit 5a66518e5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -94,8 +94,6 @@ onMounted(async () => {
} else {
distributed = wsCache.get(key)
}
console.log('distributed', distributed, attrs, window['DEXPack'])
if (distributed) {
if (window['DEXPack']) {
const xpack = await window['DEXPack'].mapping[attrs.jsname]

View File

@ -1,11 +1,11 @@
<script lang="ts" setup>
import { ElMain } from 'element-plus-secondary'
import { useRoute } from 'vue-router'
const route = useRoute()
</script>
<template>
<el-main>
<RouterView />
<RouterView :key="route.path" />
</el-main>
</template>
<style lang="less" scoped></style>