From 8e4ab7acddbdb84fd755acf7e75cf471f50cba60 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 31 十月 2024 10:16:47 +0800 Subject: [PATCH] 优化部分页面及配置 --- src/api/system/app/index.ts | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/api/system/app/index.ts b/src/api/system/app/index.ts index 6c518a5..5c83498 100644 --- a/src/api/system/app/index.ts +++ b/src/api/system/app/index.ts @@ -1,5 +1,9 @@ import request from '@/config/axios' +import { config } from '@/config/axios/config' + +const { plat_url} = config + export interface AppVO { id: number appCode: string @@ -29,14 +33,14 @@ return request.get({ url: '/system/app/get?id=' + id }) } -// 查询应用列表 +// 查询所拥有应用列表 export const getAppList = () => { - return request.get({ url: '/system/app/list' }) + return request.get({ url: plat_url + '/system/auth/get-app-permission' }) } -// 查询应用列表 -export const getAppMenuList = () => { - return request.get({ url: '/system/app-menu/list' }) +// 查询所拥有应用菜单列表 +export const getAppMenuList = (id) => { + return request.get({ url: plat_url + '/system/auth/get-app-menu-permission?id=' + id }) } // 新增 -- Gitblit v1.9.3