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