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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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