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) => {
|
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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue