zhuangyunsheng 1 rok temu
rodzic
commit
0ded8a9e10
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -62,7 +62,7 @@ router.beforeEach(async (to, from, next) => {
                 applySql = `create_id = ${id}`;
                 if (projectIds) applySql += ` or project_id in (${projectIds})`;
             }
-            applySql && this.$TOOL.data.set("APPLY_SQL", applySql);
+            applySql && tool.data.set("APPLY_SQL", applySql);
         }
 
         next(to.query.path && to.fullPath.replace("/redirect", to.query.path) || (from.fullPath == "/login" && "/" || from.fullPath));