Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
63e8714f
Commit
63e8714f
authored
Jan 02, 2019
by
郑杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.1 版本发布,代码同步后端v1.1版本
parent
2cb2c82e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
config/dev.env.js
+1
-1
src/views/monitor/log/msg.vue
+3
-3
src/views/system/user/center/updateEmail.vue
+5
-5
No files found.
config/dev.env.js
View file @
63e8714f
...
...
@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
module
.
exports
=
merge
(
prodEnv
,
{
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http://
localhost:8000
"'
BASE_API
:
'"http://
api.auauz.net
"'
})
src/views/monitor/log/msg.vue
View file @
63e8714f
...
...
@@ -60,7 +60,7 @@ export default {
beforeDestroy
:
function
()
{
// 页面离开时断开连接,清除定时器
this
.
disconnect
()
clearInterval
(
this
.
timer
)
window
.
clearInterval
(
this
.
timer
)
},
methods
:
{
time
(
date
)
{
...
...
@@ -69,7 +69,7 @@ export default {
initWebSocket
()
{
this
.
connection
(
this
)
// 断开重连机制,尝试发送消息,捕获异常发生时重连
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
window
.
setInterval
(()
=>
{
try
{
this
.
stompClient
.
send
(
'test'
)
}
catch
(
err
)
{
...
...
@@ -103,7 +103,7 @@ export default {
disconnect
()
{
if
(
this
.
stompClient
!=
null
)
{
this
.
stompClient
.
disconnect
()
clearInterval
(
this
.
timer
)
window
.
clearInterval
(
this
.
timer
)
}
},
getColor
(
level
)
{
...
...
src/views/system/user/center/updateEmail.vue
View file @
63e8714f
...
...
@@ -60,7 +60,7 @@ export default {
loading
:
false
,
dialog
:
false
,
title
:
'修改邮箱'
,
form
:
{
pass
:
''
,
email
:
''
,
code
:
''
},
user
:
{
email
:
''
,
password
:
''
},
codeLoading
:
false
,
codeData
:
{
type
:
'email'
,
value
:
''
},
buttonName
:
'获取验证码'
,
isDisabled
:
false
,
time
:
60
,
buttonName
:
'获取验证码'
,
isDisabled
:
false
,
time
:
5
,
rules
:
{
pass
:
[
{
required
:
true
,
validator
:
validatePass
,
trigger
:
'blur'
}
...
...
@@ -98,9 +98,9 @@ export default {
--
_this
.
time
if
(
_this
.
time
<
0
)
{
_this
.
buttonName
=
'重新发送'
_this
.
time
=
60
_this
.
time
=
5
_this
.
isDisabled
=
false
clearInterval
(
_this
.
timer
)
window
.
clearInterval
(
_this
.
timer
)
}
},
1000
)
}).
catch
(
err
=>
{
...
...
@@ -135,8 +135,8 @@ export default {
resetForm
()
{
this
.
dialog
=
false
this
.
$refs
[
'form'
].
resetFields
()
clearInterval
(
this
.
timer
)
this
.
time
=
60
window
.
clearInterval
(
this
.
timer
)
this
.
time
=
5
this
.
buttonName
=
'获取验证码'
this
.
isDisabled
=
false
this
.
form
=
{
pass
:
''
,
email
:
''
,
code
:
''
}
...
...
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