fix create page go back click (#402)

This commit is contained in:
Chirag Chhatrala
2024-05-07 16:14:54 +05:30
committed by GitHub
parent 49e6382bbb
commit f8ad962e5b

View File

@@ -42,7 +42,7 @@ useOpnSeoMeta({
})
onBeforeRouteLeave((to, from, next) => {
if (this.isDirty()) {
if (isDirty()) {
if (window.confirm('Changes you made may not be saved. Are you sure want to leave?')) {
window.onbeforeunload = null
next()