master
parent
d88027acfb
commit
e3f861d8d9
@ -1,12 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import "./assets/css/common.less";
|
import {
|
||||||
export default {
|
mapGetters
|
||||||
name: 'App'
|
} from 'vuex'
|
||||||
}
|
import "./assets/css/common.less";
|
||||||
|
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>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in new issue