forked from verdnatura/salix-front
Fix form model beforeRouteLeave
This commit is contained in:
parent
1cff622898
commit
5ae54d557b
|
@ -106,7 +106,10 @@ onMounted(async () => {
|
|||
});
|
||||
|
||||
onBeforeRouteLeave((to, from, next) => {
|
||||
if (!hasChanges.value) next();
|
||||
if (!hasChanges.value) {
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
quasar.dialog({
|
||||
component: VnConfirm,
|
||||
|
|
Loading…
Reference in New Issue