<template>
<router-view :key="key"></router-view>
</template>
<script>
export default {
computed: {
key() {
return this.$route.path + Date.now()
}
}
}
</script>
<style>
</style>
//解决进入不同row的详情,打开多个tab,数据均为最后一次打开的数据
watch: {
$route(to, from) {
if (to.query.id != from.query.id) {
this.invoiceItem = to.query
this.getInvoiceDetails();
}
},
}