fix(xpack): 路由跳转失败

This commit is contained in:
dataeaseShu 2024-06-05 15:30:11 +08:00
parent 7055cd2189
commit 48768527f9
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>