Parcourir la source

fix: menuModel

lrl il y a 3 ans
Parent
commit
05ed941638
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      src/layout/components/tag/index.vue

+ 3 - 2
src/layout/components/tag/index.vue

@@ -272,9 +272,10 @@ function dynamicRouteTag(value: string, parentPath: string): void {
 // 重新加载
 function onFresh() {
   toggleClass(true, refreshButton, document.querySelector(".rotate"));
-  const { fullPath } = unref(route);
+  const { fullPath, query } = unref(route);
   router.replace({
-    path: "/redirect" + fullPath
+    path: "/redirect" + fullPath,
+    query: query
   });
   setTimeout(() => {
     removeClass(document.querySelector(".rotate"), refreshButton);