1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-25 01:59:47 +02:00

support author notification

This commit is contained in:
lxsang
2020-09-22 19:50:59 +02:00
parent 528ec59e7b
commit aafb565511
4 changed files with 21 additions and 2 deletions

View File

@ -164,6 +164,10 @@ class QuickTalk {
content: ta.value,
},
};
if (this.options.author) {
data.author =
this.options.author.first + "@" + this.options.author.last;
}
this.request(this.options.api_uri + "/post", data, (ret) => {
if (ret.result) {
// TODO: more check goes here