import Api from "~/service/Api" export default { async getMenuTree() {
let rtnmsg = await Api.post("/admin/menu/getMenuTree", {});
if (rtnmsg.respCode == SUCCESS) { this.menuTree = rtnmsg.data this.menuTree.forEach((item) => { this.expandedKeys.push(item.id); }); } }, //获取菜单详情 async getMenuById(data) { let params = { "id": data.id }
let rtnmsg = await Api.post("/admin/menu/getMenuById", params);
if (rtnmsg.respCode == SUCCESS) { this.menuInfo = rtnmsg.data } }, }