src/components/square.vue
@@ -71,8 +71,9 @@ :limit="3" :auto-upload='false' ref="upload" :on-change="onChange" :on-exceed="handleExceed" :file-list="fileList"> > <el-button size="small" type="primary">点击上传</el-button> <div slot="tip" class="el-upload__tip">不超过50M</div> </el-upload> @@ -132,6 +133,10 @@ this.getData(); }, methods: { onChange(file, fileList) { this.fileList = []; this.fileList = fileList; }, createTopic() { let me = this; var userId = localStorage.getItem('userId');