fix:添加校验的中英文

This commit is contained in:
zhangyu
2021-06-16 15:28:06 +08:00
parent a808dae7c1
commit ae2e7ea9ef
6 changed files with 54 additions and 16 deletions

View File

@@ -144,10 +144,14 @@ export default {
},
methods: {
statusChange (user) {
console.log(user)
if (user.roles) {
user.roleIds = user.roles.map(t => t.id)
}
put(this.url, user).then(response => {
// if (!user.id){
// return
// }
put('sys/user', user).then(response => {
if (response.code === 200) {
this.rightBox.show = false
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })