Skip to content

Commit 40efc09

Browse files
committed
fix: delete useless code
1 parent 84ef207 commit 40efc09

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/web-antd/src/router/guard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
1818
// 记录已经加载的页面
1919
const loadedPaths = new Set<string>();
2020

21-
router.beforeEach(async (to) => {
21+
router.beforeEach((to) => {
2222
to.meta.loaded = loadedPaths.has(to.path);
2323

2424
// 页面加载进度条

apps/web-ele/src/router/guard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
1818
// 记录已经加载的页面
1919
const loadedPaths = new Set<string>();
2020

21-
router.beforeEach(async (to) => {
21+
router.beforeEach((to) => {
2222
to.meta.loaded = loadedPaths.has(to.path);
2323

2424
// 页面加载进度条

apps/web-naive/src/router/guard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
1818
// 记录已经加载的页面
1919
const loadedPaths = new Set<string>();
2020

21-
router.beforeEach(async (to) => {
21+
router.beforeEach((to) => {
2222
to.meta.loaded = loadedPaths.has(to.path);
2323

2424
// 页面加载进度条

playground/src/router/guard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
1818
// 记录已经加载的页面
1919
const loadedPaths = new Set<string>();
2020

21-
router.beforeEach(async (to) => {
21+
router.beforeEach((to) => {
2222
to.meta.loaded = loadedPaths.has(to.path);
2323

2424
// 页面加载进度条

0 commit comments

Comments
 (0)