src/components/mobileCortrolSearch/index.vue
@@ -6,6 +6,7 @@ slot="append" class="iconSearch" icon="el-icon-search" @click="search" ></el-button> </el-input> </div> @@ -20,6 +21,7 @@ return { viewer: null, DC: null, input: "", }; }, created() { @@ -31,6 +33,11 @@ viewer.scene.globe.depthTestAgainstTerrain = false; this.viewer = viewer; }, search() { let that = this; this.$store.commit("MSET_BIGPOPUP", { search: true, value: that.input }); that.input = ""; }, }, }; </script>