feat: base ticket_b退化到setTimeout后执行

This commit is contained in:
caoqianming 2025-11-24 09:00:33 +08:00
parent 2b63930012
commit bc9effd983
1 changed files with 10 additions and 10 deletions

View File

@ -35,16 +35,16 @@ const props = defineProps({
const workflow = ref(null); const workflow = ref(null);
const transitions = ref([]); const transitions = ref([]);
onMounted(async () => { onMounted(async () => {
init(); setTimeout(()=>{init()}, 2000)
watch( // watch(
() => props.ticket_, // () => props.ticket_,
async (newVal) => { // async (newVal) => {
if (newVal && Object.keys(newVal).length > 0) { // if (newVal && Object.keys(newVal).length > 0) {
init(); // init();
} // }
}, // },
{ deep: true } // { deep: true }
) // )
}) })
const ticketId = ref(null); const ticketId = ref(null);