yanglzh 3 жил өмнө
parent
commit
7a065b4488

+ 1 - 2
src/views/system/role/component/editRole.vue

@@ -62,7 +62,6 @@
 <script lang="ts">
 import { reactive, toRefs, defineComponent, ref, unref } from 'vue';
 import api from '/@/api/system';
-import { getMenuList } from '/@/api/system/menu';
 import { ElMessage } from 'element-plus';
 import { getBackEndControlRoutes } from '/@/router/backEnd';
 
@@ -198,7 +197,7 @@ export default defineComponent({
 		};
 		// 获取菜单结构数据
 		const getMenuData = () => {
-			getMenuList({ status: -1 }).then((res: any) => {
+			api.menu.getList({ status: -1 }).then((res: any) => {
 				state.menuData = res;
 			});
 		};