|
|
@ -37,7 +37,11 @@ |
|
|
async function uploadLogo(file) { |
|
|
async function uploadLogo(file) { |
|
|
let data = new FormData() |
|
|
let data = new FormData() |
|
|
data.append("file", file) |
|
|
data.append("file", file) |
|
|
const res = await post("/api/global/configs/upload/settings/logo", data, {}) |
|
|
const res = await post( |
|
|
|
|
|
"/api/admin/configs/upload/settings/logoUrl", |
|
|
|
|
|
data, |
|
|
|
|
|
{} |
|
|
|
|
|
) |
|
|
return await res.json() |
|
|
return await res.json() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|