Commit 6d308688 authored by Qingyu Deng's avatar Qingyu Deng

refactor: change to async function

parent 90add0ab
...@@ -343,11 +343,10 @@ export default { ...@@ -343,11 +343,10 @@ export default {
this.getPermissionsAll(); this.getPermissionsAll();
}, },
methods: { methods: {
getPermissionsAll() { async getPermissionsAll() {
let { email } = this.$store.state.userInfo; let { email } = this.$store.state.userInfo;
getAll_role_list(email).then((res) => { const res = await getAll_role_list(email);
this.permissionsAll = res; this.permissionsAll = res;
});
}, },
// tab切换 // tab切换
handleTabChange() { handleTabChange() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment