Skip to content

Let's use AI to Earn!

上传问题

DESKTOP-ZTS2NQJNA4af8521f5b40
diff --git a/src/api/task.ts b/src/api/task.ts
index 5133c683..0c982d80 100644
--- a/src/api/task.ts
+++ b/src/api/task.ts
@@ -46,7 +46,7 @@ export const taskApi = {
/**
* 申请任务
*/
- taskApply<T extends TaskDataInfo>(id: string) {
+ taskApply<T extends TaskDataInfo>(id: string) {
return http.post<Task<T>>(
`/tasks/apply/${id}`,
{},
diff --git a/src/views/task/components/mineInfo.tsx b/src/views/task/components/mineInfo.tsx
index a494de16..478d306c 100644
--- a/src/views/task/components/mineInfo.tsx
+++ b/src/views/task/components/mineInfo.tsx
@@ -31,6 +31,7 @@ import {
import dayjs from 'dayjs';
const FILE_BASE_URL = import.meta.env.VITE_APP_FILE_HOST;
+const VITE_APP_URL = import.meta.env.VITE_APP_URL;
export interface MineTaskInfoRef {
init: (
@@ -275,7 +276,7 @@ const Com = forwardRef<MineTaskInfoRef>((props: any, ref) => {
fileList={fileList}
onChange={handleUploadChange}
beforeUpload={beforeUpload}
- action="/api/upload"
+ action={VITE_APP_URL+"/oss/upload/permanent"}
multiple
maxCount={5}
>