修改部分接口传参,修复登录验证码错误弹窗不显示问题
This commit is contained in:
@@ -85,7 +85,7 @@ import { method } from 'lodash'
|
||||
this.$router.replace({ name: 'home' })
|
||||
} else {
|
||||
this.getCaptcha()
|
||||
this.$message.error(data.msg)
|
||||
this.$message.error(data.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -72,12 +72,15 @@
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/sys/role/info/${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
params: this.$http.adornParams({
|
||||
roleId:this.dataForm.id
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.roleName = data.role.roleName
|
||||
this.dataForm.remark = data.role.remark
|
||||
var idx = data.role.menuIdList.indexOf(this.tempKey)
|
||||
console.log(idx);
|
||||
if (idx !== -1) {
|
||||
data.role.menuIdList.splice(idx, data.role.menuIdList.length - idx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user