Update demo and some config

This commit is contained in:
chengpeiquan 2019-12-20 00:55:24 +08:00
parent 676df4906b
commit 8179ef8425
2 changed files with 5 additions and 5 deletions

View File

@ -7,9 +7,9 @@ import baiduAnalytics from '@lib/vue-baidu-analytics'
Vue.use(baiduAnalytics, { Vue.use(baiduAnalytics, {
router: router, router: router,
siteIdList: [ siteIdList: [
'7d6465217b1b44018c4557d9e7d804eb', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'4cacea1098b6c4d16990a04abd93c9a9', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
'5be8daec4f7dd86255ae9320369c7678' 'cccccccccccccccccccccccccccccccc'
], ],
debug: true debug: true
}); });

View File

@ -28,8 +28,8 @@ const routes = [
] ]
const router = new VueRouter({ const router = new VueRouter({
base: process.env.NODE_ENV === 'production' ? location.pathname.split('/').slice(0, 2).join('/') : '/', // base: process.env.NODE_ENV === 'production' ? location.pathname.split('/').slice(0, 2).join('/') : '/',
mode: 'history', // mode: 'history',
linkActiveClass: 'cur', linkActiveClass: 'cur',
linkExactActiveClass: 'cur', linkExactActiveClass: 'cur',
routes routes