diff --git a/components.d.ts b/components.d.ts index a61bccc..b178d34 100644 --- a/components.d.ts +++ b/components.d.ts @@ -57,6 +57,8 @@ declare module 'vue' { NoticeEditor: typeof import('./src/components/group/manage/NoticeEditor.vue')['default'] NoticeTab: typeof import('./src/components/group/manage/NoticeTab.vue')['default'] NotificationApi: typeof import('./src/components/common/NotificationApi.vue')['default'] + NProgress: typeof import('naive-ui')['NProgress'] + NTag: typeof import('naive-ui')['NTag'] RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/api/upload.js b/src/api/upload.js index c6e9a17..d89fdb9 100644 --- a/src/api/upload.js +++ b/src/api/upload.js @@ -21,6 +21,9 @@ export const ServeFileSubareaUpload = (data = {}, options = {}) => { } // 上传图片文件或者视频 -export const uploadImg = (data) => { - return post('/upload/img', data,{baseURL:import.meta.env.VITE_EPR_BASEURL}) +export const uploadImg = (data, signal) => { + return post('/upload/img', data, { + baseURL: import.meta.env.VITE_EPR_BASEURL, + signal: signal + }) } diff --git a/src/assets/image/file-paper-line@2x.png b/src/assets/image/file-paper-line@2x.png new file mode 100644 index 0000000..02c67b4 Binary files /dev/null and b/src/assets/image/file-paper-line@2x.png differ diff --git a/src/assets/image/file@2x.png b/src/assets/image/file@2x.png new file mode 100644 index 0000000..2446d2c Binary files /dev/null and b/src/assets/image/file@2x.png differ diff --git a/src/components/editor/Editor.vue b/src/components/editor/Editor.vue index a7b3495..f4b24d2 100644 --- a/src/components/editor/Editor.vue +++ b/src/components/editor/Editor.vue @@ -1,81 +1,117 @@