lex hai 1 ano
pai
achega
1f7caa3718
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/trainStatistics/trainDetail.vue

+ 2 - 1
src/views/trainStatistics/trainDetail.vue

@@ -156,10 +156,11 @@ export default {
     },
     showDetail(item) {
       if (item.notesDataIndex > 0) {
+        const route = location.hostname.indexOf("dayaedu.com") ? "/accompany/" : "/accompany-teacher/";
         postMessage({
           api: "openWebView",
           content: {
-            url: location.origin + `/accompany-teacher/#/report/${item.id}`,
+            url: location.origin + route + `#/report/${item.id}`,
             orientation: 0,
             isHideTitle: true,
             statusBarTextColor: false,