Procházet zdrojové kódy

文本分析工具

natasha před 11 měsíci
rodič
revize
624dd25187

+ 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 => {