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 },
+    });
   };
 }