watch: {
‘$route‘(to, from) {
if (from.name === ‘addPurchase‘) {
}
if (to.name === ‘addPurchase‘) {
} else {}
}
}
原文地址:https://www.cnblogs.com/wssdx/p/11506303.html
时间: 2024-10-09 16:35:30
watch: {
‘$route‘(to, from) {
if (from.name === ‘addPurchase‘) {
}
if (to.name === ‘addPurchase‘) {
} else {}
}
}
原文地址:https://www.cnblogs.com/wssdx/p/11506303.html