提交 69b31f46 编写于 作者: M mehaotian

fix: 修改uni统计自定义事件url不携带参数的bug,修改uni统计build的问题

上级 4a8a5d3e
......@@ -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: []
}
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';
......@@ -18,7 +18,6 @@ function getUuid() {
} catch (e) {
uuid = '';
}
uni.setStorageSync(UUID_KEY, uuid);
return uuid
}
......@@ -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,
......
{
"name": "@dcloudio/uni-stat",
"version": "0.0.105",
"version": "0.0.108",
"description": "",
"main": "dist/index.js",
"scripts": {
......
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'
......
......@@ -14,7 +14,6 @@ export function getUuid() {
} catch (e) {
uuid = '';
}
uni.setStorageSync(UUID_KEY, uuid);
return uuid
}
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册