diff --git a/nezha-fronted/src/components/common/mixin/editRigthBox.js b/nezha-fronted/src/components/common/mixin/editRigthBox.js index c088739f6..2d6d6372c 100644 --- a/nezha-fronted/src/components/common/mixin/editRigthBox.js +++ b/nezha-fronted/src/components/common/mixin/editRigthBox.js @@ -5,9 +5,9 @@ export default { } }, mounted () { - if( this.isEdit ) { + if (this.isEdit) { window.onbeforeunload = () => { - return "确认离开当前页面吗?未保存的数据将会丢失" + return '确认离开当前页面吗?未保存的数据将会丢失' } } }, diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index 1f2621d2f..32d362493 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -205,11 +205,13 @@