From a3f357e8a60443b74b64c7479113c68eb35ce1f5 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期五, 15 七月 2022 19:44:57 +0800 Subject: [PATCH] 控制轮询 --- src/pages/vindicate/index/App.vue | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue index 90264c0..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", @@ -229,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", + }, + "*" + ); } }, }, @@ -371,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