瀏覽代碼

修改地址

lex 1 年之前
父節點
當前提交
1f7caa3718
共有 1 個文件被更改,包括 2 次插入1 次删除
  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,