liyongli 2 năm trước cách đây
mục cha
commit
387575f480
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/view/onlineText.vue

+ 4 - 2
src/view/onlineText.vue

@@ -546,15 +546,17 @@ function back(v, i, type) {
   search.list.push(item);
   search['list' + type].splice(i, 1);
 }
-console.log(location.search)
 function getServer() {
   if (!window.fetch || !rawText.value) return;
   loading.value = true;
+  const ele = document.createElement("div");
+  ele.innerHTML = rawText.value;
   window
     .fetch('https://topic.smcic.net/youmei/check', {
       method: 'POST',
       body: JSON.stringify({
-        text: rawText.value,
+        raw: ele.innerText,
+        text: rawText.value
       }),
       headers: {
         'Content-Type': 'application/json',