fix: base 退化为等待2s后执行
This commit is contained in:
parent
bf0538a396
commit
b340469468
|
|
@ -36,17 +36,17 @@ const props = defineProps({
|
||||||
const workflow = ref(null);
|
const workflow = ref(null);
|
||||||
const transitions = ref([]);
|
const transitions = ref([]);
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// setTimeout(()=>{init()}, 500)
|
setTimeout(()=>{init()}, 2000)
|
||||||
await init();
|
// await init();
|
||||||
watch(
|
// watch(
|
||||||
() => props.ticket_,
|
// () => props.ticket_,
|
||||||
async (newVal) => {
|
// async (newVal) => {
|
||||||
if (newVal && Object.keys(newVal).length > 0) {
|
// if (newVal && Object.keys(newVal).length > 0) {
|
||||||
await init();
|
// await init();
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{ deep: true }
|
// { deep: true }
|
||||||
)
|
// )
|
||||||
})
|
})
|
||||||
const actionShow = ref(false);
|
const actionShow = ref(false);
|
||||||
const suggestion = ref("")
|
const suggestion = ref("")
|
||||||
|
|
@ -54,7 +54,7 @@ const isOwn = ref(false)
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
transitions.value = [];
|
transitions.value = [];
|
||||||
actionShow.value = false;
|
actionShow.value = false;
|
||||||
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
|
if (props.ticket_ && props.ticket_.id) {
|
||||||
isOwn.value = props.ticket_.create_by === currentUser.value;
|
isOwn.value = props.ticket_.create_by === currentUser.value;
|
||||||
const isParticipant =
|
const isParticipant =
|
||||||
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue