askbot-dragon 1.6.72-beta → 1.6.73-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -435,7 +435,10 @@ export default {
|
|
|
435
435
|
if (isMobile()) {
|
|
436
436
|
setTimeout(() => {
|
|
437
437
|
const range = document.createRange();
|
|
438
|
-
|
|
438
|
+
const domText = document.createElement('div')
|
|
439
|
+
domText.style.display = 'none'
|
|
440
|
+
domText.innerText = res.data
|
|
441
|
+
range.selectNode(domText);
|
|
439
442
|
const selection = window.getSelection();
|
|
440
443
|
//移除之前选中内容
|
|
441
444
|
if (selection.rangeCount > 0) selection.removeAllRanges();
|