接口优化
This commit is contained in:
parent
2d33866e19
commit
dbac0cca95
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
16
reading-platform-frontend/src/components.d.ts
vendored
16
reading-platform-frontend/src/components.d.ts
vendored
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user