Jelajahi Sumber

editer vue 初始化空间vuex

yunxing 4 tahun lalu
induk
melakukan
db411e8486
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/views/editer.vue

+ 2 - 1
src/views/editer.vue

@@ -38,10 +38,11 @@ export default {
         this.init();
     },
     methods: {
-        ...mapMutations(["SETPROJECT", "INITEQUIPMAP", "INITSTYLE", "INITRULELIST", "INITOBJEXTINFO"]),
+        ...mapMutations(["SETPROJECT", "INITEQUIPMAP", "INITSTYLE", "INITRULELIST", "INITOBJEXTINFO", "INITZONEMAP"]),
         init() {
             // 重新加载时初始化 vuex 数据
             this.INITEQUIPMAP();
+            this.INITZONEMAP();
             this.INITOBJEXTINFO({});
             this.INITSTYLE({});
             this.INITRULELIST([]);