瀏覽代碼

fix: menuModel

lrl 3 年之前
父節點
當前提交
05ed941638
共有 1 個文件被更改,包括 3 次插入2 次删除
  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() {
 function onFresh() {
   toggleClass(true, refreshButton, document.querySelector(".rotate"));
   toggleClass(true, refreshButton, document.querySelector(".rotate"));
-  const { fullPath } = unref(route);
+  const { fullPath, query } = unref(route);
   router.replace({
   router.replace({
-    path: "/redirect" + fullPath
+    path: "/redirect" + fullPath,
+    query: query
   });
   });
   setTimeout(() => {
   setTimeout(() => {
     removeClass(document.querySelector(".rotate"), refreshButton);
     removeClass(document.querySelector(".rotate"), refreshButton);