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

@@ -80,20 +80,7 @@ export default {
}
},
methods: {
statusChange (user) {
if (user.roles) {
user.roleIds = user.roles.map(t => t.id)
}
put(this.url, user).then(response => {
if (response.code === 200) {
this.rightBox.show = false
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
} else {
this.$message.error(response.msg)
}
this.getTableData()
})
}
}
}
</script>