shenwu hai 7 meses
pai
achega
e80a5df66d
Modificáronse 2 ficheiros con 17 adicións e 3 borrados
  1. 15 1
      config/defaultSettings.ts
  2. 2 2
      src/services/distributor/miniApp/index.tsx

+ 15 - 1
config/defaultSettings.ts

@@ -8,7 +8,6 @@ const Settings: ProLayoutProps & {
   logo?: string;
 } = {
   navTheme: 'light',
-  // navTheme: 'realDark',
   // 拂晓蓝
   colorPrimary: '#1890ff',
   layout: 'mix',
@@ -20,10 +19,25 @@ const Settings: ProLayoutProps & {
   pwa: true,
   logo: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
   iconfontUrl: '',
+  // "splitMenus": true,
+  // siderMenuType:"group",
   token: {
     // 参见ts声明,demo 见文档,通过token 修改样式
     //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
   },
 };
 
+// {
+//   "navTheme": "light",
+//   "colorPrimary": "#1677FF",
+//   "layout": "mix",
+//   "contentWidth": "Fluid",
+//   "fixedHeader": true,
+//   "fixSiderbar": true,
+//   "pwa": true,
+//   "logo": "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",
+//   "token": {},
+
+//   "siderMenuType": "sub"
+// }
 export default Settings;

+ 2 - 2
src/services/distributor/miniApp/index.tsx

@@ -10,8 +10,8 @@ interface MiniAppListParams extends Page{
 }
 /** 获取当前的用户 GET /api/currentUser */
 export async function miniAppList(params:MiniAppListParams) {
-  return request(api+'/admin/wechatMiniapp/list', {
+  return request(api+'/admin/app/list', {
     method: 'GET',
-    params
+    params:{...params,appType:1}
   });
 }