|
@@ -4,6 +4,7 @@
|
|
|
<div class="iconBtn backBtn" @click="goBack" v-if="goBackVisible"></div>
|
|
|
<div class="iconBtn mapBtn" @click="modeChange"></div>
|
|
|
<div class="iconBtn homeBtn" @click="goHome"></div>
|
|
|
+ <div class="iconBtn squareBtn" @click="goSquare"></div>
|
|
|
</div>
|
|
|
<input
|
|
|
placeholder="Search Bench"
|
|
@@ -23,6 +24,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import bus from "../../service/bus";
|
|
|
export default {
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -89,13 +91,17 @@ export default {
|
|
|
window.open("http://139.196.158.57/#/Overview", "_blank");
|
|
|
},
|
|
|
goHome() {
|
|
|
- this.$router.push({
|
|
|
- path: '/',
|
|
|
- query:{
|
|
|
- m: '8b934420_ZJUb_b6f9'
|
|
|
- }
|
|
|
- })
|
|
|
+ bus.emit("goHome");
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/',
|
|
|
+ // query:{
|
|
|
+ // m: '8b934420_ZJUb_b6f9'
|
|
|
+ // }
|
|
|
+ // })
|
|
|
},
|
|
|
+ goSquare(){
|
|
|
+ this.$store.dispatch("common/setSquareStatus", true);
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -181,6 +187,12 @@ export default {
|
|
|
background-image: url(../../assets/home.png);
|
|
|
}
|
|
|
|
|
|
+.squareBtn{
|
|
|
+ height: 23px;
|
|
|
+ width: 23px;
|
|
|
+ background-image: url(../../assets/square.png);
|
|
|
+}
|
|
|
+
|
|
|
.jumpBtn {
|
|
|
margin: 0 6px;
|
|
|
width: 30px;
|