mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 02:46:47 +08:00
feat:修改图片上传及版本
This commit is contained in:
@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
|
|||||||
import { getCookie } from "@/api/utils";
|
import { getCookie } from "@/api/utils";
|
||||||
|
|
||||||
import { USER_INFO } from "@/api/api";
|
import { USER_INFO } from "@/api/api";
|
||||||
console.log("版本2.1.1------------");
|
console.log("版本2.1.2------------");
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ const httpupload = axios.create({
|
|||||||
headers: { "Content-Type": "multipart/form-data" },
|
headers: { "Content-Type": "multipart/form-data" },
|
||||||
});
|
});
|
||||||
|
|
||||||
export const fileUp = (data) => httpupload.post("/file/upload", data, {
|
export const fileUp = (data) => httpupload.post(import.meta.env.VITE_BASE_API + "/file/upload", data, {
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
headers: { "Content-Type": "multipart/form-data" },
|
||||||
});
|
});
|
||||||
export const videoUp = (data) => httpupload.post("/file/uploadunlimit", data, {
|
export const videoUp = (data) => httpupload.post("/file/uploadunlimit", data, {
|
||||||
|
|||||||
Reference in New Issue
Block a user