liche update for admin uploadpdf bug
This commit is contained in:
@@ -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 {//源数据为对象
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user