Compare commits

..

No commits in common. "59c26054d9c0918ad22532e2c0fdf98d39f1437a" and "3e7268802e52f7257fff22cd3422d5e72f4421be" have entirely different histories.

2 changed files with 18 additions and 22 deletions

View File

@ -90,7 +90,6 @@
const ticket_f = ref({}); const ticket_f = ref({});
const isOwn = ref(false); const isOwn = ref(false);
onMounted(() => {
watch( watch(
() => props.ticket_, () => props.ticket_,
async (newVal) => { async (newVal) => {
@ -100,8 +99,10 @@
} }
} }
}, },
{ immediate: false, deep: true } { immediate: false }
) )
onMounted(() => {
}) })
const popup = ref(null); const popup = ref(null);

View File

@ -36,17 +36,8 @@ const props = defineProps({
const workflow = ref(null); const workflow = ref(null);
const transitions = ref([]); const transitions = ref([]);
onMounted(async () => { onMounted(async () => {
// setTimeout(()=>{init()}, 500) await getUser()
await init(); setTimeout(()=>{init()}, 500)
watch(
() => props.ticket_,
async (newVal) => {
if (newVal && Object.keys(newVal).length > 0) {
await init();
}
},
{ deep: true }
)
}) })
const actionShow = ref(false); const actionShow = ref(false);
const suggestion = ref("") const suggestion = ref("")
@ -75,6 +66,10 @@ const init = async () => {
}) })
} }
} }
const currentUser = ref(null);
const getUser = async() =>{
currentUser.value = uni.getStorageSync("userInfo").id
}
const isSaveing = ref(false); const isSaveing = ref(false);