1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
const InnerTable = ({
history
}) => {
//更新权限
updatePermission({
permissionId:currentId,
pathKey:permissionKey,
permissionName
}).then(( {code}) => {
if(code ==200) {
message.info('更新成功')
// loadPage()
}else {
message.error('更新失败')
}
}).finally(()=> {
history.replace(`/permission?v=${Math.random()*1000}`)
})
}
|