|
@@ -81,6 +81,8 @@ export default {
|
|
|
} else {
|
|
|
Toast(res.msg)
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(e)
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
@@ -88,9 +90,9 @@ export default {
|
|
|
try {
|
|
|
let authArr = authStr.split(',')
|
|
|
authArr.forEach(item => {
|
|
|
- if(authMap[item]){
|
|
|
+ if (authMap[item]) {
|
|
|
this.role[authMap[item]] = true
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
} catch (e) {
|
|
|
console.log(e)
|