Skip to content

Commit

Permalink
重命名
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Dec 25, 2023
1 parent 38ff44f commit 789bd17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/system/menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const listMenu = (queryParams: SysMenuQuery) => {
}

// 查询菜单树
export const menuTree = () => {
export const listMenuTree = () => {
return request({
url: '/system/menu/menuTree',
method: 'get'
Expand Down
4 changes: 2 additions & 2 deletions src/views/system/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ import { onMounted, reactive, ref, toRefs } from 'vue'
import { FormInstance, FormRules } from 'element-plus'
import { Plus, Edit, Delete, Search, Refresh } from '@element-plus/icons-vue'
import { getProxy } from '@/utils/getCurrentInstance'
import { listMenu, menuTree as selectMenuTree, getMenu, addMenu, editMenu, changeStatus, deleteMenu } from '@/api/system/menu'
import { listMenu, listMenuTree, getMenu, addMenu, editMenu, changeStatus, deleteMenu } from '@/api/system/menu'
import { SysMenu, SysMenuForm, SysMenuQuery } from '@/api/system/menu/types'
import IconSelect from '@/components/IconSelect/index.vue'
Expand Down Expand Up @@ -352,7 +352,7 @@ const handleList = async () => {
// 查询菜单树
const getMenuTree = async () => {
const menuTrees: any[] = []
const res: any = await selectMenuTree()
const res: any = await listMenuTree()
const menuTree = { value: 0, label: '顶级菜单', children: res.data }
menuTrees.push(menuTree)
state.menuTree = menuTrees
Expand Down

0 comments on commit 789bd17

Please sign in to comment.