修改$t为$tn

修改部分函数api的名称
This commit is contained in:
jaylen
2022-11-27 16:58:51 +08:00
parent 72d0c5872a
commit fa70ad608a
92 changed files with 1475 additions and 1461 deletions

View File

@@ -119,15 +119,15 @@
// 获取验证码
getCode() {
if (this.$refs.code.canGetCode) {
this.$t.message.loading('正在获取验证码')
this.$tn.message.loading('正在获取验证码')
setTimeout(() => {
this.$t.message.closeLoading()
this.$t.message.toast('验证码已经发送')
this.$tn.message.closeLoading()
this.$tn.message.toast('验证码已经发送')
// 通知组件开始计时
this.$refs.code.start()
}, 2000)
} else {
this.$t.message.toast(this.$refs.code.secNum + '秒后再重试')
this.$tn.message.toast(this.$refs.code.secNum + '秒后再重试')
}
},
@@ -138,11 +138,11 @@
// 开始倒计时
codeStart() {
this.$t.message.toast('倒计时开始')
this.$tn.message.toast('倒计时开始')
},
// 结束倒计时
codeEnd() {
this.$t.message.toast('倒计时结束')
this.$tn.message.toast('倒计时结束')
},
// 正在倒计时
codeChange(event) {
@@ -155,4 +155,4 @@
</script>
<style lang="scss" scoped>
</style>
</style>