@lark-apaas/miaoda-presets 1.0.10 → 1.0.11-beta.0
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.
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 加载性能监控脚本
|
|
4
4
|
* @param {object} option
|
|
5
|
-
* @param {string} [option.bid='
|
|
5
|
+
* @param {string} [option.bid='apaas_miaoda']
|
|
6
6
|
* @param {string} [option.globalName='KSlardarWeb']
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
9
|
function getSlardarScript(option = {}) {
|
|
10
|
-
const bid = option.bid || '
|
|
10
|
+
const bid = option.bid || 'apaas_miaoda';
|
|
11
11
|
const globalName = option.globalName || 'KSlardarWeb';
|
|
12
12
|
return `
|
|
13
13
|
<script>
|
|
@@ -21,7 +21,7 @@ function getSlardarScript(option = {}) {
|
|
|
21
21
|
// 脚本加载完成后执行初始化
|
|
22
22
|
if (window.KSlardarWeb) {
|
|
23
23
|
window.KSlardarWeb('init', {
|
|
24
|
-
bid: '
|
|
24
|
+
bid: '${bid}',
|
|
25
25
|
// 四种类型:dev/boe/pre/online
|
|
26
26
|
env: 'online',
|
|
27
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/miaoda-presets",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib"
|
|
6
6
|
],
|
|
@@ -61,6 +61,5 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": ">=16.14.0",
|
|
63
63
|
"react-dom": ">=16.14.0"
|
|
64
|
-
}
|
|
65
|
-
"gitHead": "10f20a5f5cd6b6fa12524008f8c68c82bc729cc7"
|
|
64
|
+
}
|
|
66
65
|
}
|