From 33413fbb270d9da840f32180c6a45f3cd96f9845 Mon Sep 17 00:00:00 2001
From: miao <2514145421@qq.com>
Date: Tue, 7 Feb 2023 19:12:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=A8=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/TopToolBar.vue | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/pages/TopToolBar.vue b/src/pages/TopToolBar.vue
index fe53e3d..a73e84d 100644
--- a/src/pages/TopToolBar.vue
+++ b/src/pages/TopToolBar.vue
@@ -440,8 +440,6 @@
-
-
-
+
@@ -486,6 +484,14 @@
{{ $store.state.fan_temp.toFixed(1) }} ℃
+
+
+
+
+
import { defineComponent, ref, Ref, computed, watch, onMounted } from "vue";
-import { useStore } from "src/store";
+import { IWuJieInterface, useStore } from "src/store";
import FusionSettingsDialog from "src/components/FusionSettingsDialog.vue";
import GridSettingDialog from "src/components/GridSettingDialog.vue";
@@ -601,7 +607,7 @@ export default defineComponent({
const register_dialog: Ref = ref(null);
const window_rect_edit_dialog: Ref = ref(null);
-
+ let isfull = ref(false);
const power_flag = ref(false);
watch(
() => power_flag.value,
@@ -696,6 +702,7 @@ export default defineComponent({
show_device_list,
power_flag,
fan,
+ isfull,
async backupDB() {
let client = GlobalData.getInstance().getCurrentClient();
if (client) {
@@ -958,6 +965,13 @@ export default defineComponent({
?.windowFullScreen(window.window_id, false);
}
},
+ isfullbtn() {
+ isfull.value = !isfull.value;
+ if ((window as any).$wujie) {
+ const $wujie = (window as any).$wujie as IWuJieInterface;
+ $wujie?.bus.$emit("isfull", isfull.value);
+ }
+ },
};
},
});