Commit 85580398 authored by zhanglw's avatar zhanglw

z

parent c455f899
......@@ -85,7 +85,7 @@ export default {
location.reload()
},
open() {
this.$confirm('确定注销并退出系统吗?', '提示', {
this.$confirm('确定退出系统吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -51,7 +51,7 @@ export default {
})
},
open() {
this.$confirm('确定注销并退出系统吗?', '提示', {
this.$confirm('确定退出系统吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -51,7 +51,7 @@ export default {
})
},
open() {
this.$confirm('确定注销并退出系统吗?', '提示', {
this.$confirm('确定退出系统吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -216,25 +216,25 @@ export default {
duration: 5000
})
}
this.smsTime = 30
this.timer = setInterval(() => {
this.smsTime--
if (this.smsTime === 0) {
clearInterval(this.timer)
this.timer = null
this.smsBtn = '短信获取验证码'
}
}, 1000)
HttpReq.webClientApi.sendSmsCode({
tel: this.loginForm.username
}).then((res) => {
this.$notify({
title: res.msg,
type: 'success',
type: res.code === 200 ? 'success' : 'error',
duration: 2500
})
if (res.code === 200) {
this.smsBtn = '短信已发送'
this.smsTime = 30
this.timer = setInterval(() => {
this.smsTime--
if (this.smsTime === 0) {
clearInterval(this.timer)
this.timer = null
this.smsBtn = '短信获取验证码'
}
}, 1000)
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment