From de640e7f7591db461cf8db667966b6b85a9ee87d Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Tue, 30 Jan 2024 02:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.js | 20 +++++++++---------- .../applet/appidmanager/appid/index.jsx | 0 .../applet/appidmanager/appid/service.js | 0 .../applet/appidmanager/payment/index.jsx | 0 .../applet/appidmanager/payment/service.js | 0 .../applet/basicconfiguration/index.jsx | 2 +- .../applet/basicconfiguration/index.less | 0 .../applet/materialmanager/index.jsx | 0 .../applet/materialmanager/index.less | 0 .../applet/pagemanager/index.jsx | 0 .../applet/pagemanager/index.less | 0 .../applet/paytemplate/index.jsx | 2 +- .../applet/paytemplate/index.less | 0 src/pages/{groupMeal => }/applet/service.js | 0 14 files changed, 12 insertions(+), 12 deletions(-) rename src/pages/{groupMeal => }/applet/appidmanager/appid/index.jsx (100%) rename src/pages/{groupMeal => }/applet/appidmanager/appid/service.js (100%) rename src/pages/{groupMeal => }/applet/appidmanager/payment/index.jsx (100%) rename src/pages/{groupMeal => }/applet/appidmanager/payment/service.js (100%) rename src/pages/{groupMeal => }/applet/basicconfiguration/index.jsx (99%) rename src/pages/{groupMeal => }/applet/basicconfiguration/index.less (100%) rename src/pages/{groupMeal => }/applet/materialmanager/index.jsx (100%) rename src/pages/{groupMeal => }/applet/materialmanager/index.less (100%) rename src/pages/{groupMeal => }/applet/pagemanager/index.jsx (100%) rename src/pages/{groupMeal => }/applet/pagemanager/index.less (100%) rename src/pages/{groupMeal => }/applet/paytemplate/index.jsx (99%) rename src/pages/{groupMeal => }/applet/paytemplate/index.less (100%) rename src/pages/{groupMeal => }/applet/service.js (100%) diff --git a/config/routes.js b/config/routes.js index 5a98854..e606a74 100644 --- a/config/routes.js +++ b/config/routes.js @@ -329,36 +329,36 @@ export default [ { name: '团餐小程序管理', icon: 'BankFilled', - path: '/groupMeal/applet', + path: 'applet', routes: [ { name: '页面管理', icon: 'smile', - path: '/groupMeal/applet/paytemplate', - component: './groupMeal/applet/paytemplate', + path: '/applet/paytemplate', + component: './applet/paytemplate', }, { name: '素材管理', icon: 'smile', - path: '/groupMeal/applet/basicconfiguration', - component: './groupMeal/applet/basicconfiguration', + path: '/applet/basicconfiguration', + component: './applet/basicconfiguration', }, { name: '小程序基础配置', icon: 'smile', - path: '/groupMeal/applet/appidmanager', + path: '/applet/appidmanager', routes: [ { name: '支付配置', icon: 'smile', - path: '/groupMeal/applet/appidmanager/payment', - component: './groupMeal/applet/appidmanager/payment', + path: '/applet/appidmanager/payment', + component: './applet/appidmanager/payment', }, { name: 'APPID', icon: 'smile', - path: '/groupMeal/applet/appidmanager/appid', - component: './groupMeal/applet/appidmanager/appid', + path: '/applet/appidmanager/appid', + component: './applet/appidmanager/appid', }, ], }, diff --git a/src/pages/groupMeal/applet/appidmanager/appid/index.jsx b/src/pages/applet/appidmanager/appid/index.jsx similarity index 100% rename from src/pages/groupMeal/applet/appidmanager/appid/index.jsx rename to src/pages/applet/appidmanager/appid/index.jsx diff --git a/src/pages/groupMeal/applet/appidmanager/appid/service.js b/src/pages/applet/appidmanager/appid/service.js similarity index 100% rename from src/pages/groupMeal/applet/appidmanager/appid/service.js rename to src/pages/applet/appidmanager/appid/service.js diff --git a/src/pages/groupMeal/applet/appidmanager/payment/index.jsx b/src/pages/applet/appidmanager/payment/index.jsx similarity index 100% rename from src/pages/groupMeal/applet/appidmanager/payment/index.jsx rename to src/pages/applet/appidmanager/payment/index.jsx diff --git a/src/pages/groupMeal/applet/appidmanager/payment/service.js b/src/pages/applet/appidmanager/payment/service.js similarity index 100% rename from src/pages/groupMeal/applet/appidmanager/payment/service.js rename to src/pages/applet/appidmanager/payment/service.js diff --git a/src/pages/groupMeal/applet/basicconfiguration/index.jsx b/src/pages/applet/basicconfiguration/index.jsx similarity index 99% rename from src/pages/groupMeal/applet/basicconfiguration/index.jsx rename to src/pages/applet/basicconfiguration/index.jsx index 3b81e4c..52de71b 100644 --- a/src/pages/groupMeal/applet/basicconfiguration/index.jsx +++ b/src/pages/applet/basicconfiguration/index.jsx @@ -121,7 +121,7 @@ const Material = () => { const response = await appletAPI.GetAllStore(); if (response.statusCode === 200) { setStoreList(response.data); - setSelectedStore(response.data[0].id); + setSelectedStore(response.data[0]?.id); } else { message.error(response.msg || '获取店铺列表失败'); } diff --git a/src/pages/groupMeal/applet/basicconfiguration/index.less b/src/pages/applet/basicconfiguration/index.less similarity index 100% rename from src/pages/groupMeal/applet/basicconfiguration/index.less rename to src/pages/applet/basicconfiguration/index.less diff --git a/src/pages/groupMeal/applet/materialmanager/index.jsx b/src/pages/applet/materialmanager/index.jsx similarity index 100% rename from src/pages/groupMeal/applet/materialmanager/index.jsx rename to src/pages/applet/materialmanager/index.jsx diff --git a/src/pages/groupMeal/applet/materialmanager/index.less b/src/pages/applet/materialmanager/index.less similarity index 100% rename from src/pages/groupMeal/applet/materialmanager/index.less rename to src/pages/applet/materialmanager/index.less diff --git a/src/pages/groupMeal/applet/pagemanager/index.jsx b/src/pages/applet/pagemanager/index.jsx similarity index 100% rename from src/pages/groupMeal/applet/pagemanager/index.jsx rename to src/pages/applet/pagemanager/index.jsx diff --git a/src/pages/groupMeal/applet/pagemanager/index.less b/src/pages/applet/pagemanager/index.less similarity index 100% rename from src/pages/groupMeal/applet/pagemanager/index.less rename to src/pages/applet/pagemanager/index.less diff --git a/src/pages/groupMeal/applet/paytemplate/index.jsx b/src/pages/applet/paytemplate/index.jsx similarity index 99% rename from src/pages/groupMeal/applet/paytemplate/index.jsx rename to src/pages/applet/paytemplate/index.jsx index cc9accd..f6a0801 100644 --- a/src/pages/groupMeal/applet/paytemplate/index.jsx +++ b/src/pages/applet/paytemplate/index.jsx @@ -115,7 +115,7 @@ const pageManage = () => { const response = await appletAPI.GetAllStore(); if (response.statusCode==200) { setStoreList(response.data); - setSelectedStore(response.data[0].id); + setSelectedStore(response.data[0]?.id); } else { message.error(response.msg || '获取店铺列表失败'); } diff --git a/src/pages/groupMeal/applet/paytemplate/index.less b/src/pages/applet/paytemplate/index.less similarity index 100% rename from src/pages/groupMeal/applet/paytemplate/index.less rename to src/pages/applet/paytemplate/index.less diff --git a/src/pages/groupMeal/applet/service.js b/src/pages/applet/service.js similarity index 100% rename from src/pages/groupMeal/applet/service.js rename to src/pages/applet/service.js