wenbobowen 4 ani în urmă
părinte
comite
25d3b2e525
1 a modificat fișierele cu 0 adăugiri și 5 ștergeri
  1. 0 5
      src/utils/util.js

+ 0 - 5
src/utils/util.js

@@ -10,15 +10,12 @@ export function isUrl(url) {
 }
 
 export function keepLastIndex(obj, window) {
-  console.log('进来了')
   if (window.getSelection) { // ie11 10 9 ff safari
-    console.log('进来了11111')
     obj.focus() // 解决ff不获取焦点无法定位问题
     const range = window.getSelection() // 创建range
     range.selectAllChildren(obj) // range 选择obj下所有子内容
     range.collapseToEnd() // 光标移至最后
   } else if (document.selection) { // ie10 9 8 7 6 5
-    console.log('进来了2222')
     const range = document.selection.createRange() // 创建选择对象
     range.moveToElementText(obj) // range定位到obj
     range.collapse(false) // 光标移至最后
@@ -44,8 +41,6 @@ export function uploadImg(imgData) {
       'imgData': imgData,
       'innerPublic': true
     }).then((res) => {
-      console.log('res', res)
-      console.log('res.url', res.url)
       resolve(res.data.url)
     })
   })