|
|
|
@ -1,19 +1,19 @@ |
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
@ -24,5 +24,4 @@ export default { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|
|