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