Commit 943c094b by 赵永成

xiu gai tupian

parent ba4a479d
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
// 首先将值转为数组 // 首先将值转为数组
const list = Array.isArray(val) ? val : this.value.split(","); const list = Array.isArray(JSON.parse(val)) ? JSON.parse(val) : this.value.split(",");
// 然后将数组转为对象数组 // 然后将数组转为对象数组
this.fileList = list.map((item) => { this.fileList = list.map((item) => {
if (typeof item === "string") { if (typeof item === "string") {
......
...@@ -24,8 +24,10 @@ export default { ...@@ -24,8 +24,10 @@ export default {
}, },
methods: { methods: {
submit() { submit() {
console.log(" this.value1", this.value);
this.$nextTick(() => { this.$nextTick(() => {
updateConfig({ ...this.initValue, configValue: this.value }).then(res => { console.log(" this.value2", JSON.stringify(this.value));
updateConfig({ ...this.initValue, configValue: JSON.stringify(this.value) }).then(res => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
}) })
}) })
......
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