清空表单
This commit is contained in:
@@ -51,16 +51,17 @@ export const usePermissionStore = defineStore('permisson', {
|
||||
return routes;
|
||||
},
|
||||
async getMenuRole() {
|
||||
const res = await getUserMenuRole();
|
||||
this.setMenuList(res.data);
|
||||
this.addRouters =await this.GenerateRoutes(res.data);
|
||||
const {code,data,message}= await getUserMenuRole();
|
||||
if(code==200){
|
||||
this.setMenuList(data);
|
||||
this.addRouters =await this.GenerateRoutes(data);
|
||||
}
|
||||
|
||||
},
|
||||
async getButtonRole() {
|
||||
const {code,data,message} = await getUserButtonRole();
|
||||
if(code==200){
|
||||
this.buttonPermissions=data;
|
||||
}else{
|
||||
Message.error(message);
|
||||
}
|
||||
},
|
||||
clearRouters(){
|
||||
|
||||
Reference in New Issue
Block a user