wyling пре 3 година
родитељ
комит
8409ffc08f
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/hooks/index.ts

+ 5 - 2
src/hooks/index.ts

@@ -85,7 +85,10 @@ export class RouterBus {
     this.router.push({ path: "/mockTest", query: this.route.query });
   };
   /** 错题重阅 */
-  goWrongReview = (id: number) => {
-    this.router.push({ path: "/wrongReview", query: this.route.query });
+  goWrongReview = (ids: number | number[]) => {
+    this.router.push({
+      path: "/wrongReview",
+      query: { ...this.route.query, wrongIds: ids },
+    });
   };
 }