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