|
@@ -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 });
|
|
|
+ });
|
|
|
+};
|