This commit is contained in:
joshen
2025-12-03 17:31:15 +08:00
2 changed files with 16 additions and 0 deletions

View File

@@ -353,6 +353,14 @@ export default {
this.keyword = newval; this.keyword = newval;
} }
}, },
"$route.query.keyword": {
handler(newval) {
if (newval && this.current == "case") {
this.keyword = newval;
}
},
immediate: true,
},
}, },
data() { data() {
return { return {

View File

@@ -895,6 +895,14 @@ export default {
}; };
}, },
watch: { watch: {
"$route.query.keyword": {
handler(newval) {
if (newval) {
this.search(true);
}
},
immediate: true,
},
// years() { // years() {
// this.search(true) // this.search(true)
// } // }