From d365829b14ca4256d39694b9cdcd43bad0ad8595 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期五, 11 二月 2022 18:18:39 +0800
Subject: [PATCH] bug修复

---
 src/pages/vindicate/index/App.vue |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue
index baf9848..df6d8ed 100644
--- a/src/pages/vindicate/index/App.vue
+++ b/src/pages/vindicate/index/App.vue
@@ -107,7 +107,7 @@
   components: {
     systemClean,
     updateSettings,
-      BackUp,
+    BackUp,
     restartSettings,
     sysInfo,
   },
@@ -126,7 +126,7 @@
           img_white: "/images/vindicate/绯荤粺娓呯悊-鐧�.png",
           img_welcome: "/images/vindicate/绯荤粺娓呯悊.png",
         },
-        
+
         {
           name: "閲嶅惎璁剧疆",
           img_black: "/images/vindicate/閲嶅惎璁剧疆-榛�.png",
@@ -164,13 +164,6 @@
     };
   },
   created() {
-    window.parent.postMessage(
-      {
-        msg: "showBack",
-      },
-      "*"
-    );
-
     let color = localStorage.getItem("--colorCard");
     if (color) {
       document.documentElement.style.setProperty("--colorCard", `${color}`);
@@ -236,6 +229,27 @@
         return this.searchArr.filter((item) => {
           return item.name.indexOf(this.searchText.toUpperCase()) > -1;
         });
+      }
+    },
+  },
+  watch: {
+    showWelcome(newVal) {
+      if (newVal) {
+        // 闅愯棌杩斿洖鎸夋寜閽�
+        window.parent.postMessage(
+          {
+            msg: "hiddenBack",
+          },
+          "*"
+        );
+      } else {
+        //鏄剧ず杩斿洖鎸夐挳
+        window.parent.postMessage(
+          {
+            msg: "showBack",
+          },
+          "*"
+        );
       }
     },
   },
@@ -378,10 +392,10 @@
       background-color: rgba(251, 251, 255, 0.1);
       backdrop-filter: blur(4px);
       float: left;
-      width: 442px;
+      width: 288px;
       height: 190px;
-      margin: 0 15px;
-      margin-bottom: 30px;
+      margin: 0 10px;
+      margin-bottom: 20px;
       border-radius: 15px;
       display: flex;
       justify-content: center;

--
Gitblit v1.8.0