v1.1 版本发布,代码同步后端v1.1版本
This commit is contained in:
@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
|
|||||||
|
|
||||||
module.exports = merge(prodEnv, {
|
module.exports = merge(prodEnv, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
BASE_API: '"http://localhost:8000"'
|
BASE_API: '"http://api.auauz.net"'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
beforeDestroy: function() {
|
beforeDestroy: function() {
|
||||||
// 页面离开时断开连接,清除定时器
|
// 页面离开时断开连接,清除定时器
|
||||||
this.disconnect()
|
this.disconnect()
|
||||||
clearInterval(this.timer)
|
window.clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
time(date) {
|
time(date) {
|
||||||
@@ -69,7 +69,7 @@ export default {
|
|||||||
initWebSocket() {
|
initWebSocket() {
|
||||||
this.connection(this)
|
this.connection(this)
|
||||||
// 断开重连机制,尝试发送消息,捕获异常发生时重连
|
// 断开重连机制,尝试发送消息,捕获异常发生时重连
|
||||||
this.timer = setInterval(() => {
|
this.timer = window.setInterval(() => {
|
||||||
try {
|
try {
|
||||||
this.stompClient.send('test')
|
this.stompClient.send('test')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -103,7 +103,7 @@ export default {
|
|||||||
disconnect() {
|
disconnect() {
|
||||||
if (this.stompClient != null) {
|
if (this.stompClient != null) {
|
||||||
this.stompClient.disconnect()
|
this.stompClient.disconnect()
|
||||||
clearInterval(this.timer)
|
window.clearInterval(this.timer)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getColor(level) {
|
getColor(level) {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
loading: false, dialog: false, title: '修改邮箱', form: { pass: '', email: '', code: '' },
|
loading: false, dialog: false, title: '修改邮箱', form: { pass: '', email: '', code: '' },
|
||||||
user: { email: '', password: '' }, codeLoading: false,
|
user: { email: '', password: '' }, codeLoading: false,
|
||||||
codeData: { type: 'email', value: '' },
|
codeData: { type: 'email', value: '' },
|
||||||
buttonName: '获取验证码', isDisabled: false, time: 60,
|
buttonName: '获取验证码', isDisabled: false, time: 5,
|
||||||
rules: {
|
rules: {
|
||||||
pass: [
|
pass: [
|
||||||
{ required: true, validator: validatePass, trigger: 'blur' }
|
{ required: true, validator: validatePass, trigger: 'blur' }
|
||||||
@@ -98,9 +98,9 @@ export default {
|
|||||||
--_this.time
|
--_this.time
|
||||||
if (_this.time < 0) {
|
if (_this.time < 0) {
|
||||||
_this.buttonName = '重新发送'
|
_this.buttonName = '重新发送'
|
||||||
_this.time = 60
|
_this.time = 5
|
||||||
_this.isDisabled = false
|
_this.isDisabled = false
|
||||||
clearInterval(_this.timer)
|
window.clearInterval(_this.timer)
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -135,8 +135,8 @@ export default {
|
|||||||
resetForm() {
|
resetForm() {
|
||||||
this.dialog = false
|
this.dialog = false
|
||||||
this.$refs['form'].resetFields()
|
this.$refs['form'].resetFields()
|
||||||
clearInterval(this.timer)
|
window.clearInterval(this.timer)
|
||||||
this.time = 60
|
this.time = 5
|
||||||
this.buttonName = '获取验证码'
|
this.buttonName = '获取验证码'
|
||||||
this.isDisabled = false
|
this.isDisabled = false
|
||||||
this.form = { pass: '', email: '', code: '' }
|
this.form = { pass: '', email: '', code: '' }
|
||||||
|
|||||||
Reference in New Issue
Block a user