作者 RuoYi

注册成功提示类型success

@@ -127,7 +127,8 @@ export default { @@ -127,7 +127,8 @@ export default {
127 register(this.registerForm).then(res => { 127 register(this.registerForm).then(res => {
128 const username = this.registerForm.username; 128 const username = this.registerForm.username;
129 this.$alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", '系统提示', { 129 this.$alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", '系统提示', {
130 - dangerouslyUseHTMLString: true 130 + dangerouslyUseHTMLString: true,
  131 + type: 'success'
131 }).then(() => { 132 }).then(() => {
132 this.$router.push("/login"); 133 this.$router.push("/login");
133 }).catch(() => {}); 134 }).catch(() => {});