Beobachten Sie mit mehreren Variablen VueJs
watch([a, b], ([newA, newB], [prevA, prevB]) => {
// do whatever you want
});
CodePadding
watch([a, b], ([newA, newB], [prevA, prevB]) => {
// do whatever you want
});