Browse Source

fix: menuModel

lrl 3 years ago
parent
commit
05ed941638
1 changed files with 3 additions and 2 deletions
  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);