From 75ca0722b86e7751202e7aec2e8d8ef96d68ce98 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 22 Dec 2021 16:22:40 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/pcviews/campusnavi/index.vue | 33 ++++++++++++++++++++++++++++-----
1 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/src/pcviews/campusnavi/index.vue b/src/pcviews/campusnavi/index.vue
index b52331c..21a01c1 100644
--- a/src/pcviews/campusnavi/index.vue
+++ b/src/pcviews/campusnavi/index.vue
@@ -1,15 +1,38 @@
<template>
- <div>
- 校园导航
- </div>
+ <div>
+ <campusNav ref="campusNavRoute"
+ :comeName="comeName"
+ :getToName="getToName"
+ v-show="campusNavFlag" />
+ </div>
</template>
<script>
export default {
-
+ data () {
+ return {
+ campusNavFlag: true,
+ comeName: '',
+ getToName: ''
+ }
+ },
+ methods: {
+ closeCampusNav () {
+ this.campusNavFlag = false
+ this.$refs.campusNavRoute.clearLayer()
+ this.$store.commit('SET_STARTINGPOINT', null)
+ this.$store.commit('SET_TERMINUS', null)
+ this.comeName = ''
+ this.getToName = ''
+ this.$store.dispatch('delVisitedViews', this.$route)
+ this.$router.push('/pcLayout/default')
+ }
+ },
+ destroyed () {
+ this.campusNavFlag = false
+ }
}
</script>
<style>
-
</style>
--
Gitblit v1.9.3