master
parent
c6df950d99
commit
34000dc4ea
@ -1,28 +1,27 @@ |
||||
<script setup> |
||||
export default { |
||||
name: "mapRouter", |
||||
name: 'mapRouter', |
||||
data() { |
||||
return {} |
||||
}, |
||||
created() { |
||||
this.$router.replace('/libraryManage/warehouseMap'); |
||||
this.$router.replace('/SYSTEM/warehouseMap') |
||||
}, |
||||
// 使用 watch 监听路由变化,手动更新数据 |
||||
watch: { |
||||
'$route': function(to, from) { |
||||
$route: function (to, from) { |
||||
// console.log('////') |
||||
this.$router.replace('/libraryManage/warehouseMap'); |
||||
this.$router.replace('/SYSTEM/warehouseMap') |
||||
} |
||||
}, |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<template> |
||||
<div> |
||||
<div> |
||||
|
||||
</div> |
||||
</div> |
||||
</template> |
||||
|
||||
<style scoped lang="scss"> |
||||
|
||||
</style> |
||||
|
||||
Loading…
Reference in new issue