|
|
@@ -48,8 +48,8 @@ export const userMixin = {
|
|
|
repassword: '', // 确认密码
|
|
|
avatarurl: '', // 用户头像路径
|
|
|
rcode: '', // 注册验证码
|
|
|
- isLoading: false, // 登录加载效果
|
|
|
- user: this.$user, // 登录用户对象
|
|
|
+ isLoading: false, // 登入加载效果
|
|
|
+ user: this.$user, // 登入用户对象
|
|
|
code: '获取验证码',
|
|
|
isBtn: false,
|
|
|
imageUrl: require('assets/img/icon/avatar.png')
|
|
|
@@ -194,12 +194,12 @@ export const userMixin = {
|
|
|
plat: 1
|
|
|
}
|
|
|
} else {
|
|
|
- // 登录失败
|
|
|
+ // 登入失败
|
|
|
this.$message.warning(resp.msg)
|
|
|
this.userLogin.credential = credential
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
- // 登录请求错误
|
|
|
+ // 登入请求错误
|
|
|
this.$message.error(error.message)
|
|
|
}).finally(() => {
|
|
|
this.isLoading = false
|
|
|
@@ -230,7 +230,7 @@ export const userMixin = {
|
|
|
if (resp.code === 0) {
|
|
|
// 关闭弹窗并刷新页面
|
|
|
this.dialogVisible = false
|
|
|
- this.$message.info('帐号已注册, 稍后会转到登录页面')
|
|
|
+ this.$message.info('帐号已注册, 稍后会转到登入页面')
|
|
|
setInterval(() => {
|
|
|
this.$router.push('/login')
|
|
|
}, 3000)
|
|
|
@@ -268,7 +268,7 @@ export const userMixin = {
|
|
|
if (resp.code === 0) {
|
|
|
// 关闭弹窗并刷新页面
|
|
|
this.dialogVisible = false
|
|
|
- this.$message.info('密码已重置, 请返回登录页面登录帐号')
|
|
|
+ this.$message.info('密码已重置, 请返回登入页面登入帐号')
|
|
|
} else {
|
|
|
this.$message.warning(resp.msg)
|
|
|
}
|
|
|
@@ -288,7 +288,7 @@ export const userMixin = {
|
|
|
this.$router.push('/')
|
|
|
},
|
|
|
goToLogout() {
|
|
|
- this.$confirm('退出登录, 是否继续?', '提示', {
|
|
|
+ this.$confirm('退出登入, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|