🔨 Refactor: fix hidedock setting

This commit is contained in:
萌萌哒赫萝 2023-04-09 18:32:53 +08:00
parent 8421925f9d
commit 09ad102fe8

View File

@ -1244,6 +1244,7 @@ function updateHelperChange (val: ICheckBoxValueType) {
function handleHideDockChange (val: ICheckBoxValueType) {
if (val && currentStartMode.value === 'no-tray') {
ElMessage.warning($T('SETTINGS_ISHIDEDOCK_TIPS'))
form.isHideDock = false
return
}
saveConfig('settings.isHideDock', val)