1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 23:20:12 +08:00

Change Button the Chat (#694)

This commit is contained in:
Elsio Sanchez 2021-03-24 11:10:47 -04:00 committed by GitHub
parent 39f16d6bfc
commit 2f1f6bf6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,14 +35,18 @@
</span> </span>
<el-scrollbar> <el-scrollbar>
<input-chat /> <input-chat />
<el-button <el-button
icon="el-icon-success" icon="el-icon-check"
style="background: #008fd3; float: right" style="float: right; "
type="primary" type="primary"
circle
@click="sendComment()" @click="sendComment()"
/> />
<el-button
icon="el-icon-close"
style="float: right;margin-right: 1%;"
type="danger"
@click="clear()"
/>
</el-scrollbar> </el-scrollbar>
</el-card> </el-card>
</div> </div>
@ -113,6 +117,9 @@ export default {
}) })
} }
}, },
clear() {
this.$store.commit('setChatText', '')
},
translateDate(value) { translateDate(value) {
return this.$d(new Date(value), 'long', this.language) return this.$d(new Date(value), 'long', this.language)
} }