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); + } + }, }; }, });