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.

29 lines
525 B

2 years ago
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
import {
mapGetters
} from 'vuex'
import './assets/css/common.less'
export default {
name: 'App',
computed: {
...mapGetters([
'name'
])
},
watch: {
$route(to, from) {
const locationHash = window.location.hash
5 months ago
console.log("locationHash",locationHash)
this.$matomo.setCustomUrl(locationHash.replace(/#/g, ''))
this.$matomo.trackPageView(to.meta.title) // 设置页面名称
2 years ago
}
}
}
3 years ago
</script>