From dbac0cca95cc130e452bf46bd9fa9522741773b9 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Wed, 11 Mar 2026 16:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + reading-platform-frontend/src/api/index.ts | 2 +- reading-platform-frontend/src/components.d.ts | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3ee2292..b74c187 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ reading-platform-frontend/src/components.d.ts .cursor/rules/frontend-api-orval-usage.mdc reading-platform-frontend/src/components.d.ts reading-platform-frontend/src/components.d.ts +reading-platform-frontend/src/components.d.ts diff --git a/reading-platform-frontend/src/api/index.ts b/reading-platform-frontend/src/api/index.ts index 9e60cb3..ee78eae 100644 --- a/reading-platform-frontend/src/api/index.ts +++ b/reading-platform-frontend/src/api/index.ts @@ -31,7 +31,7 @@ request.interceptors.response.use( console.log(response); // 直接返回响应数据 // @ts-ignore - if (config._new === true) { + if (response.config._new === true) { return response.data; } else { return response.data.data; diff --git a/reading-platform-frontend/src/components.d.ts b/reading-platform-frontend/src/components.d.ts index 125d706..d1653ce 100644 --- a/reading-platform-frontend/src/components.d.ts +++ b/reading-platform-frontend/src/components.d.ts @@ -7,11 +7,27 @@ export {} declare module 'vue' { export interface GlobalComponents { + AAvatar: typeof import('ant-design-vue/es')['Avatar'] + ABadge: typeof import('ant-design-vue/es')['Badge'] AButton: typeof import('ant-design-vue/es')['Button'] + ACard: typeof import('ant-design-vue/es')['Card'] + ACol: typeof import('ant-design-vue/es')['Col'] + ADropdown: typeof import('ant-design-vue/es')['Dropdown'] + AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] AInput: typeof import('ant-design-vue/es')['Input'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] + ALayout: typeof import('ant-design-vue/es')['Layout'] + ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] + ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] + ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] + AMenu: typeof import('ant-design-vue/es')['Menu'] + AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider'] + AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] + ARow: typeof import('ant-design-vue/es')['Row'] + ASpace: typeof import('ant-design-vue/es')['Space'] + ATag: typeof import('ant-design-vue/es')['Tag'] FilePreviewModal: typeof import('./components/FilePreviewModal.vue')['default'] FileUploader: typeof import('./components/course/FileUploader.vue')['default'] LessonConfigPanel: typeof import('./components/course/LessonConfigPanel.vue')['default']