update fullscreen

This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-01-22 15:06:29 +08:00
parent 14991c7ede
commit e425de93c7
4 changed files with 377 additions and 107 deletions

View File

@@ -1,9 +1,8 @@
<script setup>
import { ref } from 'vue';
import { useSettings } from '../store/settings'
const emit = defineEmits(["close"]);
const { settings } = useSettings();
const { settings, changeScale } = useSettings();
function handleCancel() {
emit('close')
@@ -11,6 +10,7 @@ function handleCancel() {
function handleConfirm() {
// alert(JSON.stringify(settings, null, 2))
changeScale(settings.resolution.width, settings.resolution.height)
emit('close')
}
</script>