|
@@ -17,9 +17,9 @@
|
|
|
</template>
|
|
|
</template>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" style="text-align:right">
|
|
|
- <el-button type="primary" size="mini" @click="sendMessage" style="margin-bottom:10px">发送</el-button>
|
|
|
- <wang-editor v-model="content" ref="editor"></wang-editor>
|
|
|
+ <el-col :span="24" style="text-align:center">
|
|
|
+ <el-input v-model="content" type="textarea"></el-input>
|
|
|
+ <el-button type="primary" size="mini" @click="sendMessage" style="margin-top:10px">发送</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
props: {
|
|
|
room: { type: Object },
|
|
|
},
|
|
|
- components: { wangEditor },
|
|
|
+ components: {},
|
|
|
data: () => {
|
|
|
return {
|
|
|
content: '',
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
obj.receiver_id = fres === 'buyer_id' ? this.room['seller_id'] : this.room['buyer_id'];
|
|
|
obj.receiver_name = fres === 'buyer_id' ? this.room['seller_name'] : this.room['buyer_name'];
|
|
|
let res = await this.create(obj);
|
|
|
- this.$refs.editor.setContent();
|
|
|
+ // this.$refs.editor.setContent();
|
|
|
this.$set(this, `content`, '');
|
|
|
this.$forceUpdate();
|
|
|
if (this.$checkRes(res, null, res.errmsg || '发言失败')) {
|