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

refactor: change to async function

parent 90add0ab
......@@ -343,11 +343,10 @@ export default {
this.getPermissionsAll();
},
methods: {
getPermissionsAll() {
async getPermissionsAll() {
let { email } = this.$store.state.userInfo;
getAll_role_list(email).then((res) => {
this.permissionsAll = res;
});
const res = await getAll_role_list(email);
this.permissionsAll = res;
},
// tab切换
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