Commit 151d128e by lixiaomin

修改全局基础配置的左侧照片上传限制

parent fadc8bb2
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
// 图片数量限制 // 图片数量限制
limit: { limit: {
type: Number, type: Number,
default: 5, default: 100,
}, },
// 大小限制(MB) // 大小限制(MB)
......
<template> <template>
<div > <div >
<ImageUpload @callback="submit" v-model="value" :limit="2" /> <ImageUpload @callback="submit" v-model="value" />
</div> </div>
</template> </template>
...@@ -24,9 +24,7 @@ export default { ...@@ -24,9 +24,7 @@ export default {
}, },
methods: { methods: {
submit() { submit() {
console.log(" this.value1", this.value);
this.$nextTick(() => { this.$nextTick(() => {
console.log(" this.value2", JSON.stringify(this.value));
updateConfig({ ...this.initValue, configValue: JSON.stringify(this.value) }).then(res => { 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