ปรับโค้ดวินัย

This commit is contained in:
setthawutttty 2024-01-12 15:05:45 +07:00
parent 1483bbcac7
commit c81b5db558
17 changed files with 93 additions and 196 deletions

View file

@ -45,14 +45,14 @@ const myForm = ref<QForm | null>(null);
/**
* งก Save
*/
async function submit(){
async function submit() {
if (myForm.value !== null) {
myForm.value.validate().then((success) => {
if (success) {
dialogConfirm(
$q,
async () => {
await props.save(props.id, duty.value,resolution.value);
await props.save(props.id, duty.value, resolution.value);
duty.value = "";
resolution.value = "";
},
@ -62,10 +62,10 @@ async function submit(){
}
});
}
};
}
watch(props, () => {
console.log(props.command)
console.log(props.command);
duty.value = props?.duty;
resolution.value = props?.command;
});