You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
480 B
28 lines
480 B
<template>
|
|
<div id="app">
|
|
<router-view />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
mapGetters
|
|
} from 'vuex'
|
|
export default {
|
|
name: 'App',
|
|
computed: {
|
|
...mapGetters([
|
|
'name'
|
|
])
|
|
},
|
|
watch: {
|
|
$route(to, from) {
|
|
let locationHash = window.location.hash;
|
|
|
|
this.$matomo.setCustomUrl(locationHash.replace(/#/g, ''));
|
|
this.$matomo.trackPageView(to.meta.title) //设置页面名称
|
|
}
|
|
}
|
|
}
|
|
</script>
|