|
@@ -8,7 +8,7 @@
|
|
|
<div class="hots-panel" v-show="show">
|
|
|
<div class="ui-between header">
|
|
|
<span>{{ editTitle }}{{ $i18n.t("hotspot.hotspot_name") }}</span>
|
|
|
- <i class="iconfont icon_close" @click="cancel"></i>
|
|
|
+ <i class="iconfont icon_close" @click="realCancel"></i>
|
|
|
</div>
|
|
|
|
|
|
<div class="content" ref="content">
|
|
@@ -600,16 +600,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
cancel() {
|
|
|
- if (!(this.editTitle == this.$i18n.t("hotspot.edit"))) {
|
|
|
- // this.$confirm({
|
|
|
- // title: this.$i18n.t("tips.title"),
|
|
|
- // content: this.$i18n.t("hotspot.cancel_add_hotspot"),
|
|
|
- // ok: () => {
|
|
|
- // this.realCancel();
|
|
|
- // },
|
|
|
- // });
|
|
|
- this.realCancel();
|
|
|
- }
|
|
|
+ // if (!(this.editTitle == this.$i18n.t("hotspot.edit"))) {
|
|
|
+ this.$confirm({
|
|
|
+ title: this.$i18n.t("tips.title"),
|
|
|
+ content: this.$i18n.t("hotspot.cancel_add_hotspot"),
|
|
|
+ ok: () => {
|
|
|
+ this.realCancel();
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+ // }
|
|
|
},
|
|
|
realCancel() {
|
|
|
this.$store.commit("SetHotspot", this.backupHotSpot);
|