diff --git a/src/api/match/eventRecord.js b/src/api/match/eventRecord.js index b707f77..1a3480b 100644 --- a/src/api/match/eventRecord.js +++ b/src/api/match/eventRecord.js @@ -41,7 +41,7 @@ export const eventrecordPageGet = (params) => { /** * 获取证书列表 - * @param {number} registrationid - 报名记录ID (路径参数) + * @param {Array} registrationIds - 报名记录ID列表 * @returns {Promise { * imageUrl: string * }>>} */ -export const eventrecordCertificatesGet = (registrationid) => { - return http.get(`/eventrecord/${registrationid}/certificates`); +export const eventrecordCertificatesGet = (registrationIds) => { + return http.get('/eventrecord/certificates', { params: { registrationIds } }); }; /** diff --git a/src/layout/navMenu/vertical.vue b/src/layout/navMenu/vertical.vue index 478552a..b602c6f 100644 --- a/src/layout/navMenu/vertical.vue +++ b/src/layout/navMenu/vertical.vue @@ -56,7 +56,7 @@ const route = useRoute(); const state = reactive({ // 修复:https://gitee.com/lyt-top/vue-next-admin/issues/I3YX6G defaultActive: route.meta.isDynamic ? route.meta.isDynamicPath : route.path, - isCollapse: false, + isCollapse: themeConfig.value.isCollapse, }); // 获取父级菜单数据 @@ -93,7 +93,9 @@ onBeforeRouteUpdate((to) => { watch( () => themeConfig.value.isCollapse, (isCollapse) => { - document.body.clientWidth <= 1000 ? (state.isCollapse = false) : (state.isCollapse = isCollapse); + if (document.body.clientWidth > 1000) { + state.isCollapse = isCollapse; + } }, { immediate: true, diff --git a/src/views/match/user/general/index.vue b/src/views/match/user/general/index.vue index 446251e..50735e7 100644 --- a/src/views/match/user/general/index.vue +++ b/src/views/match/user/general/index.vue @@ -27,10 +27,35 @@ - + + + + + +