mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +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 { USER_INFO } from "@/api/api";
|
||||
console.log("版本2.1.12------------");
|
||||
console.log("版本2.1.13------------");
|
||||
const store = useStore();
|
||||
const router = useRouter();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-18 14:40:26
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2023-03-09 11:39:58
|
||||
* @LastEditTime: 2023-03-09 16:13:17
|
||||
* @FilePath: /stu_h5/src/components/img/UploadImg.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
@@ -63,17 +63,20 @@ const closeLoading = () => {
|
||||
function handleChange(e) {
|
||||
openLoading();
|
||||
console.log("上传", e);
|
||||
if (
|
||||
e.raw.name.includes(".mp4") ||
|
||||
e.raw.name.includes(".jpeg") ||
|
||||
e.raw.name.includes(".JPEG")
|
||||
) {
|
||||
if (e.raw.name.includes(".mp4") || e.raw.name.includes(".MP4")) {
|
||||
files.value = [];
|
||||
emit("update:value", files.value);
|
||||
ElMessage.error(`暂不支持此格式文件上传`);
|
||||
ElMessage.error(`暂不支持视频文件上传`);
|
||||
closeLoading();
|
||||
return;
|
||||
} else if (e.raw.name.includes(".jpeg") || e.raw.name.includes(".JPEG")) {
|
||||
files.value = [];
|
||||
emit("update:value", files.value);
|
||||
ElMessage.error(`暂不支持jpeg格式图片文件上传`);
|
||||
closeLoading();
|
||||
return;
|
||||
} else {
|
||||
imageRef.value.submit();
|
||||
if (e.response && e.response.code === 200) {
|
||||
e.url = e.response.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user