Browse Source

fix: delete useless code (#6143)

pull/6145/head
afe1 9 months ago
committed by GitHub
parent
commit
90625782c0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/web-antd/src/router/guard.ts
  2. 2
      apps/web-ele/src/router/guard.ts
  3. 2
      apps/web-naive/src/router/guard.ts
  4. 2
      playground/src/router/guard.ts

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

@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
// 记录已经加载的页面
const loadedPaths = new Set<string>();
router.beforeEach(async (to) => {
router.beforeEach((to) => {
to.meta.loaded = loadedPaths.has(to.path);
// 页面加载进度条

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

@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
// 记录已经加载的页面
const loadedPaths = new Set<string>();
router.beforeEach(async (to) => {
router.beforeEach((to) => {
to.meta.loaded = loadedPaths.has(to.path);
// 页面加载进度条

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

@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
// 记录已经加载的页面
const loadedPaths = new Set<string>();
router.beforeEach(async (to) => {
router.beforeEach((to) => {
to.meta.loaded = loadedPaths.has(to.path);
// 页面加载进度条

2
playground/src/router/guard.ts

@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
// 记录已经加载的页面
const loadedPaths = new Set<string>();
router.beforeEach(async (to) => {
router.beforeEach((to) => {
to.meta.loaded = loadedPaths.has(to.path);
// 页面加载进度条

Loading…
Cancel
Save