Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
1c78091e
Commit
1c78091e
authored
Dec 22, 2020
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精简代码
parent
aae41d27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
MainMenu.vue
src/components/MainMenu.vue
+8
-0
Main.vue
src/entry/best/views/Main.vue
+1
-1
No files found.
src/
entry/best/view
s/MainMenu.vue
→
src/
component
s/MainMenu.vue
View file @
1c78091e
...
@@ -45,11 +45,19 @@ export default {
...
@@ -45,11 +45,19 @@ export default {
currentRoute
:
0
,
currentRoute
:
0
,
};
};
},
},
mounted
()
{
if
(
this
.
$route
.
path
===
"/userCenter"
)
{
this
.
currentRoute
=
2
;
}
else
{
this
.
currentRoute
=
1
;
}
},
methods
:
{
methods
:
{
selectPage
(
idnex
,
path
)
{
selectPage
(
idnex
,
path
)
{
if
(
idnex
===
1
)
{
if
(
idnex
===
1
)
{
window
.
open
(
UrlPrefixObj
.
model
.
CHAIN_BROWSER_URL_PREFIX
);
window
.
open
(
UrlPrefixObj
.
model
.
CHAIN_BROWSER_URL_PREFIX
);
}
else
{
}
else
{
if
(
this
.
currentRoute
===
idnex
)
return
;
this
.
currentRoute
=
idnex
;
this
.
currentRoute
=
idnex
;
this
.
$router
.
push
({
path
:
path
});
this
.
$router
.
push
({
path
:
path
});
}
}
...
...
src/entry/best/views/Main.vue
View file @
1c78091e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
MainHeader
from
"./MainHeader.vue"
;
import
MainHeader
from
"./MainHeader.vue"
;
import
MainMenu
from
"
.
/MainMenu.vue"
;
import
MainMenu
from
"
@/components
/MainMenu.vue"
;
@
Component
({
@
Component
({
components
:
{
components
:
{
MainMenu
,
MainMenu
,
...
...
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