|
@@ -81,8 +81,14 @@ router.beforeEach(async (to, from, next) => {
|
|
|
await OnlineDetector.listener();
|
|
|
if (from.name == 'hotspot') {
|
|
|
if (store.getters.isEditing) {
|
|
|
- vue.$bus.emit('delhotspot')
|
|
|
- return next()
|
|
|
+ vue.$confirm({
|
|
|
+ content: i18n.t('hotspot.close_dialog'),
|
|
|
+ ok: () => {
|
|
|
+ vue.$bus.emit('delhotspot')
|
|
|
+ return next()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
|