liche update for admin uploadpdf bug

This commit is contained in:
xxb
2021-09-24 15:01:11 +08:00
parent fc5aa25f02
commit 254bfbfd55
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -66,7 +66,7 @@
rheight:file.picHeight//相对高度
};
//单张图替换对象
if(source instanceof Array){//源数据为数组
if(Object.prototype.toString.call(source) == "[object Array]"){//源数据为数组
source.splice(0, 1, img);
} else {//源数据为对象,编辑属性才能触发渲染
source.src = img.src;
@@ -186,7 +186,7 @@
imgs.map(function(v,i){
if(1 == mode){
//单张图替换对象
if(source instanceof Array){//源数据为数组
if(Object.prototype.toString.call(source) == "[object Array]"){//源数据为数组
console.log(source);
source.splice(0, 1, v);
} else {//源数据为对象
+1 -1
View File
@@ -72,7 +72,7 @@
files.map(function(v,i){
if(1 == mode){//只有一个替换
//单个替换对象
if(source instanceof Array){//源数据为数组
if(Object.prototype.toString.call(source) == "[object Array]"){//源数据为数组
source.splice(0, 1, v);
} else {//源数据为对象
source = v;