feat: enhance RemarkExpansion component and improve watch function syntax

This commit is contained in:
puriphatt 2025-01-24 09:50:44 +07:00
parent 1479320e96
commit bf336cbd06
2 changed files with 7 additions and 3 deletions

View file

@ -3,6 +3,7 @@ import { RequestWork } from 'src/stores/request-list';
import { convertTemplate } from 'src/utils/string-template';
import { computed } from 'vue';
import { ref } from 'vue';
import { MainButton } from 'src/components/button';
const props = defineProps<{
readonly?: boolean;

View file

@ -735,9 +735,12 @@ function sortList(
});
}
watch([currentFormData.value.taskStatus], () => {
fetchStatus();
});
watch(
() => [currentFormData.value.taskStatus],
() => {
fetchStatus();
},
);
</script>
<template>
<div class="column surface-0 fullscreen">