From 0733833340a773ec9ea4d3acee3d37526161bfd9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 22 八月 2024 16:51:03 +0800
Subject: [PATCH] 测试完成

---
 src/App.vue |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 7bbc5ed..1d2d256 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -17,20 +17,13 @@
   },
   data() {
     return {
-      routers: this.$route.path.split("/").pop(),
+      routers: window.location.href,
       routertf: true,
     };
   },
   created() {
-    this.routertf = this.$route.param5;
-    console.log(this.routertf);
-    if (
-      this.routers == "outsideChainxj" ||
-      this.routers == "outsideChain" ||
-      this.routers == "outsideChainwt"
-    ) {
-      this.routertf = false;
-    }
+    var startIndex = this.routers.indexOf("param5=") + "param5=".length; // 鎵惧埌绗竴涓瓧绗︾殑浣嶇疆
+    this.routertf = JSON.parse(this.routers.substring(startIndex)); // 鎴彇浠� 'param5=' 涔嬪悗鐨勫唴瀹�
   },
   metaInfo() {
     return {

--
Gitblit v1.9.3