From 7d7b50fa3efb4281eb1aba90e9335ccaba605d19 Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 5 Dec 2024 09:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/App.vue | 8 -------- src/renderer/src/AixPPTist/src/api/index.ts | 1 + src/renderer/src/AixPPTist/src/api/store.ts | 1 + src/renderer/src/AixPPTist/src/api/types.ts | 8 ++++++++ 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/renderer/src/AixPPTist/src/api/types.ts diff --git a/src/renderer/src/AixPPTist/src/App.vue b/src/renderer/src/AixPPTist/src/App.vue index 62045fc..5214d9b 100644 --- a/src/renderer/src/AixPPTist/src/App.vue +++ b/src/renderer/src/AixPPTist/src/App.vue @@ -60,14 +60,6 @@ window.addEventListener('unload', () => { const newDiscardedDB = JSON.stringify(discardedDBList) localStorage.setItem(LOCALSTORAGE_KEY_DISCARDED_DB, newDiscardedDB) }) -/** 接口类型 */ -interface Result { - code?: number, - msg?: string, - data?: any - rows?: Array, - total?: number -} // 获取参数 const initLoad: Function = () => { // 获取缓存的ppt 资源数据 diff --git a/src/renderer/src/AixPPTist/src/api/index.ts b/src/renderer/src/AixPPTist/src/api/index.ts index 8255435..13f8b73 100644 --- a/src/renderer/src/AixPPTist/src/api/index.ts +++ b/src/renderer/src/AixPPTist/src/api/index.ts @@ -4,6 +4,7 @@ * @date 2024-11-26 */ import { toRaw } from 'vue' +import { Result } from '@/types' // 接口类型 import msgUtils from '@/plugins/modal' // 消息工具 import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api import * as API_smarttalk from '@/api/file' // 相关api diff --git a/src/renderer/src/AixPPTist/src/api/store.ts b/src/renderer/src/AixPPTist/src/api/store.ts index 507c9db..4757db4 100644 --- a/src/renderer/src/AixPPTist/src/api/store.ts +++ b/src/renderer/src/AixPPTist/src/api/store.ts @@ -2,6 +2,7 @@ * @description api 无store循环引用 * @author zdg */ +import { Result } from '@/types' // 接口类型 import msgUtils from '@/plugins/modal' // 消息工具 import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api diff --git a/src/renderer/src/AixPPTist/src/api/types.ts b/src/renderer/src/AixPPTist/src/api/types.ts new file mode 100644 index 0000000..8321031 --- /dev/null +++ b/src/renderer/src/AixPPTist/src/api/types.ts @@ -0,0 +1,8 @@ +/** 返回-接口类型 */ +export interface Result { + code?: number, + msg?: string, + data?: any + rows?: Array, + total?: number +} \ No newline at end of file