Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
d708106d
Commit
d708106d
authored
May 17, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
$route的监听
parent
b9593fed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
index.vue
src/views/Business/index.vue
+9
-0
index.vue
src/views/Layout/components/TagsView/index.vue
+0
-5
No files found.
src/views/Business/index.vue
View file @
d708106d
...
...
@@ -11,6 +11,15 @@
<
script
>
export
default
{
name
:
"Business"
,
watch
:
{
$route
()
{
if
(
this
.
$route
.
path
.
startsWith
(
"/review"
))
{
this
.
$store
.
commit
(
"setMode"
,
"display"
);
}
else
{
this
.
$store
.
commit
(
"setMode"
,
"normal"
);
}
},
},
created
:
()
=>
{
console
.
log
(
"进入业务交易界面"
);
},
...
...
src/views/Layout/components/TagsView/index.vue
View file @
d708106d
...
...
@@ -71,11 +71,6 @@ export default {
},
watch
:
{
$route
()
{
if
(
this
.
$route
.
path
.
startsWith
(
"/review"
))
{
this
.
$store
.
commit
(
"setMode"
,
"display"
);
}
else
{
this
.
$store
.
commit
(
"setMode"
,
"normal"
);
}
this
.
addTags
();
this
.
moveToCurrentTag
();
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment