Skip to content

主页面最大化

扩大可视范围和操作区域,能更专注于主页面上的操作

vue
<script setup lang="ts">
import useSettingsStore from '@/store/modules/settings'

const settingsStore = useSettingsStore()

const mainPage = useMainPage()

function toggle() {
  mainPage.maximize(!settingsStore.mainPageMaximizeStatus)
}
</script>
<template>
  <el-button @click="toggle">
      {{ settingsStore.mainPageMaximizeStatus ? '退出' : '开启' }}最大化
  </el-button>
</template>