提交 dfeb4606 authored 作者: 王鹏飞's avatar 王鹏飞

组件替换为

上级 054967a3
...@@ -119,17 +119,17 @@ export default { ...@@ -119,17 +119,17 @@ export default {
.sendResetPasswordCode({ account: this.ruleForm.account }) .sendResetPasswordCode({ account: this.ruleForm.account })
.then(response => { .then(response => {
if (response.code === 0) { if (response.code === 0) {
this.$notify({ type: 'success', message: '验证码发送成功' }) this.$toast({ type: 'success', message: '验证码发送成功' })
} else { } else {
// 停止计时 // 停止计时
this.$refs.countdown.stop() this.$refs.countdown.stop()
this.$notify(response.msg) this.$toast(response.msg)
} }
}) })
.catch(error => { .catch(error => {
// 停止计时 // 停止计时
this.$refs.countdown.stop() this.$refs.countdown.stop()
error.response && this.$notify(error.response.data.message) error.response && this.$toast(error.response.data.message)
}) })
}, },
// 重置密码 // 重置密码
...@@ -143,11 +143,11 @@ export default { ...@@ -143,11 +143,11 @@ export default {
if (response.code === 0) { if (response.code === 0) {
this.isSuccess = true this.isSuccess = true
} else { } else {
this.$notify(response.msg) this.$toast(response.msg)
} }
}) })
.catch(error => { .catch(error => {
error.response && this.$notify(error.response.data.message) error.response && this.$toast(error.response.data.message)
}) })
}, },
// 确认密码校验 // 确认密码校验
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
methods: { methods: {
onSubmit() { onSubmit() {
if (!this.ruleForm.week_json.length) { if (!this.ruleForm.week_json.length) {
this.$notify('不选择星期,不能进行保存') this.$toast('不选择星期,不能进行保存')
return return
} }
this.isUpdate ? this.handleUpdate() : this.handleAdd() this.isUpdate ? this.handleUpdate() : this.handleAdd()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论