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

推代码格式

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