@tmsfe/tms-core 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cloudReport.ts +5 -1
package/package.json
CHANGED
package/src/cloudReport.ts
CHANGED
|
@@ -22,7 +22,11 @@ const openidIndex = 7; // openId的下标,由云函数填充
|
|
|
22
22
|
let initOptions: IInitOptions;
|
|
23
23
|
|
|
24
24
|
function init(options: IInitOptions): void {
|
|
25
|
-
|
|
25
|
+
console.log('IInitOptions', options)
|
|
26
|
+
if (!initOptions) {
|
|
27
|
+
initOptions = options;
|
|
28
|
+
wx.cloud.init({env: options.cloudEnvId});
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
function getSystemInfoString(): string {
|