Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 90625782
authored
May 08, 2025
by
afe1
Committed by
GitHub
May 08, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: delete useless code (#6143)
1 parent
84ef207d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
apps/web-antd/src/router/guard.ts
apps/web-ele/src/router/guard.ts
apps/web-naive/src/router/guard.ts
playground/src/router/guard.ts
apps/web-antd/src/router/guard.ts
View file @
9062578
...
...
@@ -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
);
// 页面加载进度条
...
...
apps/web-ele/src/router/guard.ts
View file @
9062578
...
...
@@ -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
);
// 页面加载进度条
...
...
apps/web-naive/src/router/guard.ts
View file @
9062578
...
...
@@ -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
);
// 页面加载进度条
...
...
playground/src/router/guard.ts
View file @
9062578
...
...
@@ -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
);
// 页面加载进度条
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment