Fix for #34
This commit is contained in:
@@ -12,7 +12,7 @@ const router = useRouter()
|
|||||||
const modal = useModal()
|
const modal = useModal()
|
||||||
const auth = useAuthStore()
|
const auth = useAuthStore()
|
||||||
|
|
||||||
|
const guard = ref(true)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1456,6 +1456,8 @@ const closeDocument = async () => {
|
|||||||
|
|
||||||
await useFiles().uploadFiles(fileData, [file])
|
await useFiles().uploadFiles(fileData, [file])
|
||||||
|
|
||||||
|
guard.value = false
|
||||||
|
|
||||||
await router.push(`/createDocument/show/${itemInfo.value.id}`)
|
await router.push(`/createDocument/show/${itemInfo.value.id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3144,7 +3146,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</UTabs>
|
</UTabs>
|
||||||
<UProgress animation="carousel" v-else/>
|
<UProgress animation="carousel" v-else/>
|
||||||
</UDashboardPanelContent>
|
</UDashboardPanelContent>
|
||||||
<PageLeaveGuard :when="true"/>
|
<PageLeaveGuard :when="guard"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user