From f2b1a097bbb81a36ee13fa00c84ad3c933769326 Mon Sep 17 00:00:00 2001 From: zdg Date: Wed, 27 Nov 2024 14:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0ppt-=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/api/index.ts b/src/renderer/src/AixPPTist/src/api/index.ts index 4ed3766..de8df59 100644 --- a/src/renderer/src/AixPPTist/src/api/index.ts +++ b/src/renderer/src/AixPPTist/src/api/index.ts @@ -51,7 +51,7 @@ export class PPTApi { // 获取所有幻灯片列表 static getSlideList(parentid: (Number | String)): Promise { return new Promise(async (resolve, reject) => { - const params: object = { parentid } + const params: object = { parentid, orderByColumn: 'fileidx', isAsc: 'asc' } const res: Result = await API_entpcoursefile.listEntpcoursefileNew(params) if (res.code === 200) { const slides = (res.rows || []).map(o => { @@ -111,7 +111,7 @@ export class PPTApi { static async updateSlides(newVal: object, oldVal: object) { const newData = toRaw(newVal) const oldData = toRaw(oldVal) - console.log('监听幻灯片数据变化', newData, oldData) + // console.log('监听幻灯片数据变化', newData, oldData) if (!(newData&&newData.length)) return // 新数据为空,不需要更新数据 else if (!oldData.length) return // 初始加载,旧数据空不需要更新数据