fixed

上级 87571e56
...@@ -599,6 +599,7 @@ export default { ...@@ -599,6 +599,7 @@ export default {
vm.$message.info("读取完毕"); vm.$message.info("读取完毕");
}; };
reader.readAsDataURL(file); reader.readAsDataURL(file);
return false;
}, },
// 模板下载 // 模板下载
uploadTemplate() { uploadTemplate() {
...@@ -608,21 +609,25 @@ export default { ...@@ -608,21 +609,25 @@ export default {
beforeAvatarUpload_1(file) { beforeAvatarUpload_1(file) {
if (commonUtil.isEmptyUtils(file)) return; if (commonUtil.isEmptyUtils(file)) return;
vm.imgDoUpload(file, 1, 50, 750, 100); vm.imgDoUpload(file, 1, 50, 750, 100);
return false;
}, },
// 点亮图片上传 // 点亮图片上传
beforeAvatarUpload_2(file) { beforeAvatarUpload_2(file) {
if (commonUtil.isEmptyUtils(file)) return; if (commonUtil.isEmptyUtils(file)) return;
vm.imgDoUpload(file, 2, 50, 750, 100); vm.imgDoUpload(file, 2, 50, 750, 100);
return false;
}, },
// 提交图片上传 // 提交图片上传
beforeAvatarUpload_3(file) { beforeAvatarUpload_3(file) {
if (commonUtil.isEmptyUtils(file)) return; if (commonUtil.isEmptyUtils(file)) return;
vm.imgDoUpload(file, 3, 50, 750, 100); vm.imgDoUpload(file, 3, 50, 750, 100);
return false;
}, },
// 头图图片上传 // 头图图片上传
beforeAvatarUpload_4(file) { beforeAvatarUpload_4(file) {
if (commonUtil.isEmptyUtils(file)) return; if (commonUtil.isEmptyUtils(file)) return;
vm.imgDoUpload(file, 4, 1024, 750, -1); vm.imgDoUpload(file, 4, 1024, 750, -1);
return false;
}, },
imgDoUpload(file, urlType, size, w, h) { imgDoUpload(file, urlType, size, w, h) {
const isSize = file.size / 1024 < size; const isSize = file.size / 1024 < size;
...@@ -704,7 +709,7 @@ export default { ...@@ -704,7 +709,7 @@ export default {
}); });
}); });
console.log(req); // console.log(req);
if (vm.questionEditList.showType == 1) { if (vm.questionEditList.showType == 1) {
// 单题显示 // 单题显示
vm.questionEditList.questionIntro = ""; vm.questionEditList.questionIntro = "";
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册