diff --git a/README.md b/README.md index 5a49744..9829458 100644 --- a/README.md +++ b/README.md @@ -109,4 +109,3 @@ pnpm cz # 规范提交(自动执行lint)

💖感谢每一份温暖助力💖

💌 后续将截图保留,并公示赞赏记录 💌

- diff --git a/src/config/design.ts b/src/config/design.ts index d7af973..b09f05b 100644 --- a/src/config/design.ts +++ b/src/config/design.ts @@ -1,11 +1,11 @@ export type LayoutType = 'vertical'; // 仿豆包折叠逻辑 -export type CollapseType = - | 'alwaysCollapsed' // 始终折叠 - | 'followSystem' // 跟随系统视口宽度 - | 'alwaysExpanded' // 始终打开 - | 'narrowExpandWideCollapse'; // 系统视口 宽小则张,宽大则收 +export type CollapseType + = | 'alwaysCollapsed' // 始终折叠 + | 'followSystem' // 跟随系统视口宽度 + | 'alwaysExpanded' // 始终打开 + | 'narrowExpandWideCollapse'; // 系统视口 宽小则张,宽大则收 export interface DesignConfigState { // 系统主题 diff --git a/src/stores/modules/session.ts b/src/stores/modules/session.ts index 21bbf63..7df1f24 100644 --- a/src/stores/modules/session.ts +++ b/src/stores/modules/session.ts @@ -181,7 +181,9 @@ export const useSessionStore = defineStore('session', () => { = targetIndex >= 0 ? Math.floor(targetIndex / pageSize.value) + 1 // 索引从0开始,页码从1开始 : 1; // 未找到时默认刷新第一页(可能因排序变化导致位置改变) - // 3. 刷新目标页数据 + // 3. 删除 sessionList 中该索引的元素 + sessionList.value = sessionList.value.slice(0, targetIndex).concat(sessionList.value.slice(targetIndex + 1)); + // 4. 刷新目标页数据 await requestSessionList(targetPage, true); } catch (error) {