소스 검색

文本分析工具

natasha 11 달 전
부모
커밋
624dd25187
2개의 변경된 파일23개의 추가작업 그리고 8개의 파일을 삭제
  1. 11 4
      src/components/Adult/preview/ArticleViewChs/index.vue
  2. 12 4
      src/components/Adult/preview/DialogueArticleViewChs/index.vue

+ 11 - 4
src/components/Adult/preview/ArticleViewChs/index.vue

@@ -313,10 +313,17 @@ export default {
         text: this.curQue.article
       })
         .then(res => {
-          window.open(
-            window.location.origin +
-              `/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`
-          );
+          if (this.tokenData && this.tokenData.user_type === "APP") {
+            window.open(
+              window.location.origin +
+                `/GCLS-TC/#/Integration/TextAnalyser/Result?id=${res.record.id}&type=文本分析`
+            );
+          } else {
+            window.open(
+              window.location.origin +
+                `/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`
+            );
+          }
           loading.close();
         })
         .catch(res => {

+ 12 - 4
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -269,10 +269,18 @@ export default {
         text: this.curQue.article
       })
         .then(res => {
-          window.open(
-            window.location.origin +
-              `/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`
-          );
+          if (this.tokenData && this.tokenData.user_type === "APP") {
+            window.open(
+              window.location.origin +
+                `/GCLS-TC/#/Integration/TextAnalyser/Result?id=${res.record.id}&type=文本分析`
+            );
+          } else {
+            window.open(
+              window.location.origin +
+                `/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`
+            );
+          }
+
           loading.close();
         })
         .catch(res => {