Skip to content

Commit

Permalink
fix: 修改uni统计自定义事件url不携带参数的bug,修改uni统计build的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaotian committed Aug 21, 2019
1 parent 4a8a5d3 commit 69b31f4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/rollup.config.stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = {
file: 'packages/uni-stat/dist/index.js',
format: 'es'
},
external: ['vue', '@dcloudio/uni-stat/package.json'],
external: ['vue', '../package.json'],
plugins: []
}
5 changes: 2 additions & 3 deletions packages/uni-stat/dist/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from '@dcloudio/uni-stat/package.json';
import { version } from '../package.json';

const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat';
Expand All @@ -18,7 +18,6 @@ function getUuid() {
} catch (e) {
uuid = '';
}
uni.setStorageSync(UUID_KEY, uuid);
return uuid
}

Expand Down Expand Up @@ -505,7 +504,7 @@ class Util {
key = '',
value = ""
} = {}) {
const route = getPageRoute(this);
const route = this._lastPageRoute;
let options = {
ak: this.statData.ak,
uuid: this.statData.uuid,
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-stat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-stat",
"version": "0.0.105",
"version": "0.0.108",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-stat/src/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
version
} from '@dcloudio/uni-stat/package.json'
} from '../package.json'
export const STAT_VERSION = version
export const STAT_URL = 'https://tongji.dcloud.net.cn/uni/stat'
export const STAT_H5_URL = 'https://tongji.dcloud.net.cn/uni/stat.gif'
Expand Down
1 change: 0 additions & 1 deletion packages/uni-stat/src/parameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export function getUuid() {
} catch (e) {
uuid = '';
}
uni.setStorageSync(UUID_KEY, uuid);
return uuid
}

Expand Down
2 changes: 1 addition & 1 deletion packages/uni-stat/src/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class Util {
key = '',
value = ""
} = {}) {
const route = getPageRoute(this);
const route = this._lastPageRoute;
let options = {
ak: this.statData.ak,
uuid: this.statData.uuid,
Expand Down

0 comments on commit 69b31f4

Please sign in to comment.