Commit 43d75587 authored by 姬鋆屾's avatar 姬鋆屾

推代码格式

parent 64e35831
......@@ -151,14 +151,12 @@ export default {
list() {
let temp = 1;
if (this.value) {
console.log("value", this.value);
// 首先将值转为数组
const list = Array.isArray(this.value) ? this.value : [this.value];
list &&
list.forEach((v) => {
v.url.indexOf("https") >= 0 ? (v.url = JSON.parse(v.url)) : v.url;
});
console.log(list,'1233');
// 然后将数组转为对象数组
this.fileList = list.map((item) => {
item = {
......
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