Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪晓凯
robot-monitor
Commits
90410952
Commit
90410952
authored
Aug 03, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
0d90e068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
navLeft.vue
src/components/navLeft.vue
+1
-7
container.vue
src/views/container.vue
+0
-2
No files found.
src/components/navLeft.vue
View file @
90410952
...
...
@@ -32,19 +32,13 @@
export
default
{
data
(){
return
{
platInfo
:
[],
active
:
''
}
},
props
:
[
'platInfo'
],
created
()
{
Bus
.
$on
(
'getPlatInfo'
,
val
=>
{
this
.
platInfo
=
val
;
})
this
.
active
=
this
.
$route
.
params
.
name
||
this
.
$route
.
path
;
},
beforeDestroy
()
{
Bus
.
$off
(
'getPlatInfo'
);
},
methods
:
{
navClick
(
index
)
{
this
.
active
=
index
;
...
...
src/views/container.vue
View file @
90410952
...
...
@@ -17,7 +17,6 @@
import
NavLeft
from
'../components/navLeft'
import
axios
from
'axios'
;
import
ApiConfig
from
"../config/api-config"
;
import
Bus
from
'../assets/js/bus'
export
default
{
data
()
{
...
...
@@ -43,7 +42,6 @@
axios
.
post
(
ApiConfig
.
GetPlatformInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
platInfo
=
res
.
data
.
data
;
Bus
.
$emit
(
'getPlatInfo'
,
this
.
platInfo
);
sessionStorage
.
setItem
(
'platInfo'
,
JSON
.
stringify
(
this
.
platInfo
))
// console.log(this.platInfo)
}
...
...
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