Commit 27f4e3d8 authored by 周成波's avatar 周成波

update

parent 72ce5042
......@@ -646,23 +646,10 @@ const actionUrl = ref(
: import.meta.env.VITE_APP_BASE_API + '/file/upload_pic_and_modify'
)
// 在分镜自定义上传图片时发现个bug
// 第一次上传没问题,但重复进行上传,会更新到最后一行上去。
// 奇怪,没找到原因。暂时先通过迂回的方法来处理。
let first_has_uploaded = false;
const handleUploadSuccess = (val: Wm.UploadResult) => {
if (val.code == 0) {
console.log(val)
let id = parseInt(val.message) - 1;
///// 迂回解决上述bug /////
// if (id == 0) { first_has_uploaded = true; }
// if (first_has_uploaded && id == form.adapt_result_json.length - 1) {
// console.log(first_has_uploaded);
// console.log(id);
// console.log(form.adapt_result_json.length);
// id = 0;}
/////////////////////////
form.adapt_result_json[id].本镜配图 = val.data[0].url + "?v=" + utils.genDateTimeStr();
form.adapt_result_json[id].local_image_path = val.data[0].path;
ElMessage({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment