fix create page go back click (#402)
This commit is contained in:
parent
49e6382bbb
commit
f8ad962e5b
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue