|
@@ -108,7 +108,7 @@ export function twitterPublishHandler(res) {
|
|
|
document.execCommand('selectAll');
|
|
|
}, 100).then(() => {
|
|
|
document.execCommand('delete');
|
|
|
- _setPublishContent(res.srcContent);
|
|
|
+ _setPublishContent(res.srcContent, 200);
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -434,7 +434,7 @@ function _deNetBtnClick() {
|
|
|
* @private
|
|
|
*/
|
|
|
let isSetContent = false;
|
|
|
-const _setPublishContent = throttle(function (content) {
|
|
|
+const _setPublishContent = throttle(function (content, time = 1000) {
|
|
|
if (!isSetContent) {
|
|
|
isSetContent = true;
|
|
|
let inputEle = document.querySelector('div[contenteditable="true"]');
|
|
@@ -446,7 +446,7 @@ const _setPublishContent = throttle(function (content) {
|
|
|
setTimeout(() => {
|
|
|
isSetContent = false;
|
|
|
}, 2000)
|
|
|
- }, 1000);
|
|
|
+ }, time);
|
|
|
}
|
|
|
}, 800);
|
|
|
|