NEZ-835 fix: 新增页面添加标签页关闭提示功能

This commit is contained in:
@changcode
2021-07-15 11:56:25 +08:00
parent da04ea8875
commit 4191c8113f
30 changed files with 40 additions and 91 deletions

View File

@@ -5,9 +5,9 @@ export default {
}
},
mounted () {
if( this.isEdit ) {
if (this.isEdit) {
window.onbeforeunload = () => {
return "确认离开当前页面吗?未保存的数据将会丢失"
return '确认离开当前页面吗?未保存的数据将会丢失'
}
}
},