save
This commit is contained in:
parent
f532a992e1
commit
2915136e88
|
@ -23,8 +23,7 @@ export default async function uploadOss(file: File, root: string) {
|
||||||
"Content-Type": file.type,
|
"Content-Type": file.type,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res: { name: string }) => {
|
||||||
console.log(res);
|
|
||||||
return ossBase + "/" + res.name;
|
return ossBase + "/" + res.name;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,5 +49,11 @@
|
||||||
"postcss": "^8.5.1",
|
"postcss": "^8.5.1",
|
||||||
"tailwindcss": "^4.0.4",
|
"tailwindcss": "^4.0.4",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"bcrypt",
|
||||||
|
"sharp"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue