新增设置-以全屏模式启动设置
This commit is contained in:
@@ -2,7 +2,7 @@ import { isLinux } from '@common/utils'
|
||||
import { getEnvParams, setIgnoreMouseEvents } from '@renderer/utils/tools'
|
||||
|
||||
import { useRefGetter } from '@renderer/utils/vueTools'
|
||||
import { sync, apiSource, proxy } from '@renderer/core/share'
|
||||
import { sync, apiSource, proxy, isFullscreen } from '@renderer/core/share'
|
||||
|
||||
import useSync from './useSync'
|
||||
import useUpdate from './useUpdate'
|
||||
@@ -22,6 +22,7 @@ export default () => {
|
||||
sync.enable = setting.value.sync.enable
|
||||
apiSource.value = setting.value.apiSource
|
||||
Object.assign(proxy, setting.value.network.proxy)
|
||||
isFullscreen.value = setting.value.startInFullscreen
|
||||
|
||||
const dieableIgnoreMouseEvents = () => {
|
||||
if (window.dt) return
|
||||
|
||||
@@ -20,6 +20,8 @@ dd
|
||||
base-checkbox(id="setting_show_animate" v-model="currentStting.isShowAnimation" :label="$t('setting__basic_show_animation')")
|
||||
.gap-top
|
||||
base-checkbox(id="setting_animate" v-model="currentStting.randomAnimate" :label="$t('setting__basic_animation')")
|
||||
.gap-top
|
||||
base-checkbox(id="setting_start_in_fullscreen" v-model="currentStting.startInFullscreen" :label="$t('setting__basic_start_in_fullscreen')")
|
||||
.gap-top
|
||||
base-checkbox(id="setting_to_tray" v-model="currentStting.tray.isShow" :label="$t('setting__basic_to_tray')")
|
||||
p.gap-top
|
||||
|
||||
@@ -87,6 +87,7 @@ export const currentStting = ref({
|
||||
port: '23332',
|
||||
},
|
||||
windowSizeId: 1,
|
||||
startInFullscreen: false,
|
||||
langId: 'cns',
|
||||
theme: {
|
||||
id: 0,
|
||||
|
||||
Reference in New Issue
Block a user