|
@@ -12,14 +12,14 @@ class EasyUse {
|
|
|
constructor(options = {}) {
|
|
|
|
|
|
// 默认配置文件、版本号读取
|
|
|
- const dataSoucre = `/common-module/track/json/${getPlatform() === 'PC' ? 'pc' : 'mobile'}.json`
|
|
|
+ const dataSource = `/common-module/track/json/${getPlatform() === 'PC' ? 'pc' : 'mobile'}.json`
|
|
|
let version = ''
|
|
|
if (window.goTemplateData && window.goTemplateData.version) {
|
|
|
version = window.goTemplateData.version
|
|
|
}
|
|
|
|
|
|
this.config = Object.assign({
|
|
|
- dataSoucre,
|
|
|
+ dataSource,
|
|
|
version
|
|
|
}, options)
|
|
|
this.json = []
|