From e68309d8e680d6fa82fcf3be7e8733f951201fa4 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 22 Sep 2022 14:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2vue3?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sys/menu.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api/sys/menu.ts b/src/api/sys/menu.ts index a4a399c..ea873df 100644 --- a/src/api/sys/menu.ts +++ b/src/api/sys/menu.ts @@ -3,6 +3,7 @@ import { getMenuListResultModel } from './model/menuModel'; enum Api { GetMenuList = '/sys/permission/getUserPermissionByToken', + SwitchVue3Menu = '/sys/switchVue3Menu', } /** @@ -21,3 +22,12 @@ export const getMenuList = () => { }); }); }; + +/** + * 切换成vue3菜单 + */ +export const switchVue3Menu = () => { + return new Promise((resolve) => { + defHttp.get({ url: Api.SwitchVue3Menu }); + }); +};