Skip to content

Commit b8dbd29

Browse files
committed
feat : 统计
1 parent 3ed4592 commit b8dbd29

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎main.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import App from './App'
44
import pageHead from './components/page-head.vue'
55
import pageFoot from './components/page-foot.vue'
66
import uLink from '@/components/uLink.vue'
7-
import store from './store'
7+
import store from './store'
8+
// 添加统计
9+
const Stat = require('./statistics/dcloud-stat');
10+
Stat.init(Vue);
811

912
Vue.config.productionTip = false
1013

‎statistics/dcloud-stat-config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exports.app_key = '__UNI__HelloUniApp'; // 项目的 app_id
2+
exports.getLocation = false; // 是否开启经纬度

‎statistics/dcloud-stat.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)