feat:修改版本

This commit is contained in:
lixg
2023-03-09 16:14:52 +08:00
parent 870f506936
commit fb1fa0576b
2 changed files with 11 additions and 8 deletions

View File

@@ -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();

View File

@@ -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;
}