Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-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
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
Administrator
web-monitor
Commits
4c9f8da7
Commit
4c9f8da7
authored
Mar 25, 2022
by
yanzhongrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
cbefbc50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
element-ui.scss
src/styles/element-ui.scss
+1
-1
request.js
src/utils/request.js
+2
-0
websocket.js
src/utils/websocket.js
+1
-1
index.vue
src/views/dashboard/index.vue
+1
-1
No files found.
src/styles/element-ui.scss
View file @
4c9f8da7
...
@@ -105,5 +105,5 @@
...
@@ -105,5 +105,5 @@
.el-scrollbar__wrap
{
.el-scrollbar__wrap
{
overflow
:
scroll
;
overflow
:
scroll
;
width
:
110%
;
width
:
110%
;
height
:
1
2
0%
;
height
:
1
0
0%
;
}
}
\ No newline at end of file
src/utils/request.js
View file @
4c9f8da7
...
@@ -64,6 +64,7 @@ service.interceptors.response.use(
...
@@ -64,6 +64,7 @@ service.interceptors.response.use(
if
(
code
)
{
if
(
code
)
{
if
(
code
==
201
)
{
if
(
code
==
201
)
{
location
.
href
=
location
.
href
.
replace
(
/#.+/
,
''
)
+
'#/login'
location
.
href
=
location
.
href
.
replace
(
/#.+/
,
''
)
+
'#/login'
EventBus
.
$emit
(
'cancelWS'
)
return
return
}
}
if
(
code
==
501
)
{
if
(
code
==
501
)
{
...
@@ -71,6 +72,7 @@ service.interceptors.response.use(
...
@@ -71,6 +72,7 @@ service.interceptors.response.use(
errorShowing
=
true
errorShowing
=
true
setTimeout
(()
=>
{
errorShowing
=
false
},
3000
)
setTimeout
(()
=>
{
errorShowing
=
false
},
3000
)
store
.
dispatch
(
'user/resetToken'
)
store
.
dispatch
(
'user/resetToken'
)
EventBus
.
$emit
(
'cancelWS'
)
location
.
href
=
location
.
href
.
replace
(
/#.+/
,
''
)
+
'#/login'
location
.
href
=
location
.
href
.
replace
(
/#.+/
,
''
)
+
'#/login'
return
return
}
}
...
...
src/utils/websocket.js
View file @
4c9f8da7
...
@@ -8,7 +8,7 @@ export default function socket(handlerOptions) {
...
@@ -8,7 +8,7 @@ export default function socket(handlerOptions) {
onopen
,
onopen
,
// socketUrl
// socketUrl
}
=
handlerOptions
}
=
handlerOptions
let
socketUrl
=
'ws://8.142.143.40:8885/websocket/1
/1
'
let
socketUrl
=
'ws://8.142.143.40:8885/websocket/1'
let
websocket
let
websocket
if
(
"WebSocket"
in
window
)
{
if
(
"WebSocket"
in
window
)
{
websocket
=
new
WebSocket
(
socketUrl
)
websocket
=
new
WebSocket
(
socketUrl
)
...
...
src/views/dashboard/index.vue
View file @
4c9f8da7
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
computed
:
{
computed
:
{
},
},
mounted
()
{
mounted
()
{
this
.
getDetailNode
(
4
)
this
.
getDetailNode
(
26
)
},
},
methods
:
{
methods
:
{
selectItem
(
data
)
{
selectItem
(
data
)
{
...
...
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