diff --git a/src/App.vue b/src/App.vue index 48b7c900a..d02130dfe 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,11 +28,6 @@ export default { loading: false }; }, - computed: { - path() { - return window.location.pathname; - } - }, watch: { '$store.state.socket.simulationInvite': function (val) { if (val.creator) { @@ -101,7 +96,8 @@ export default { }, subscribe() { const token = getToken(); - if (token && this.$route.path != '/404' && !this.path.endsWith('login')) { + const path = window.location.pathname; + if (token && this.$route.path != '/404' && !path.endsWith('login')) { const header = { group: '', 'X-Token': token }; this.$store.dispatch('subscribe', {header, type: getSessionStorage('project')}); } diff --git a/src/views/demonstration/deomonList/index.vue b/src/views/demonstration/deomonList/index.vue index 11307b1fb..b3b1b9815 100644 --- a/src/views/demonstration/deomonList/index.vue +++ b/src/views/demonstration/deomonList/index.vue @@ -2,8 +2,8 @@ @@ -44,8 +44,6 @@