File tree Expand file tree Collapse file tree
packages/frontend/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
2626</template >
2727
2828<script lang="ts" setup>
29- import { reactive , useTemplateRef } from ' vue' ;
29+ import { ref , useTemplateRef } from ' vue' ;
3030import type { Form } from ' @/utility/form.js' ;
3131import MkModalWindow from ' @/components/MkModalWindow.vue' ;
3232import MkForm from ' @/components/MkForm.vue' ;
@@ -47,7 +47,7 @@ const emit = defineEmits<{
4747
4848const dialog = useTemplateRef (' dialog' );
4949
50- const values = reactive ((() => {
50+ const values = ref ((() => {
5151 const obj: Record <string , any > = {};
5252 for (const item in props .form ) {
5353 if (' default' in props .form [item ]) {
@@ -61,7 +61,7 @@ const values = reactive((() => {
6161
6262function ok() {
6363 emit (' done' , {
64- result: values ,
64+ result: values . value ,
6565 });
6666 dialog .value ?.close ();
6767}
Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ const emit = defineEmits<{
6868
6969const dialog = useTemplateRef (' dialog' );
7070
71- const settings = reactive <Record <string , any >>(deepClone (props .currentSettings ));
71+ const settings = ref <Record <string , any >>(deepClone (props .currentSettings ));
7272
7373function save() {
74- emit (' saved' , deepClone (settings ));
74+ emit (' saved' , deepClone (settings . value ));
7575 dialog .value ?.close ();
7676}
7777
You can’t perform that action at this time.
0 commit comments