ソースを参照

补充路由和解密key

cxmo 1 年間 前
コミット
3a6bbaf900
4 ファイル変更15 行追加1 行削除
  1. 1 0
      index.html
  2. 1 0
      public/base_config.js
  3. 3 1
      src/api/crypto.js
  4. 10 0
      src/router/index.js

+ 1 - 0
index.html

@@ -6,6 +6,7 @@
     <title>弘则研报</title>
     <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
     <script src="/jquery-3.6.0.min.js"></script>
+    <script src="/base_config.js"></script>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 0
public/base_config.js

@@ -0,0 +1 @@
+window.key = 'KcSJaJoUBC2ZAA7HEWpaiH49';

+ 3 - 1
src/api/crypto.js

@@ -1,4 +1,6 @@
-const key = 'KcSJaJoUBC2ZAA7HEWpaiH49';
+const key = window.key||'KcSJaJoUBC2ZAA7HEWpaiH49';
+//逸诺 EsPUY7nSsdiPP83IELXztSEJ
+//体验版 KcSJaJoUBC2ZAA7HEWpaiH49
 
 class CryptoJS {
 	// 3DES加密,CBC/PKCS5Padding

+ 10 - 0
src/router/index.js

@@ -16,6 +16,16 @@ const routes=[
     name: "reportEn",
     component: () => import("@/views/reportEn/detail.vue"),
   },
+  {
+    path: "/reportshare_crm_report",
+    name: "reportDetailV1",
+    component: () => import("@/views/report/reportDetail.vue"),
+  },
+  {
+    path: "/reportshare_crm_report_en",
+    name: "reportEnV1",
+    component: () => import("@/views/reportEn/detail.vue"),
+  },
 ]
 
 const router = createRouter({