@lark-apaas/client-toolkit 1.1.35-alpha.1 → 1.1.35-alpha.dataloom.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.
- package/lib/hooks/useAppInfo.js +3 -5
- package/package.json +2 -2
package/lib/hooks/useAppInfo.js
CHANGED
|
@@ -23,19 +23,17 @@ const useAppInfo = ()=>{
|
|
|
23
23
|
if (info.description) {
|
|
24
24
|
const meta = document.querySelector("meta[property='og:description']");
|
|
25
25
|
if (meta) meta.content = info.description;
|
|
26
|
-
const metaDom = document.querySelector("meta[name='description']");
|
|
27
|
-
if (metaDom) metaDom.content = info.description;
|
|
28
26
|
}
|
|
29
27
|
};
|
|
30
|
-
const handleMetaInfoChanged = async (info
|
|
31
|
-
if (!info) info = await getAppInfo(
|
|
28
|
+
const handleMetaInfoChanged = async (info)=>{
|
|
29
|
+
if (!info) info = await getAppInfo(true);
|
|
32
30
|
updateDomInfo(info);
|
|
33
31
|
setAppInfo((prev)=>({
|
|
34
32
|
...prev,
|
|
35
33
|
...info
|
|
36
34
|
}));
|
|
37
35
|
};
|
|
38
|
-
handleMetaInfoChanged(
|
|
36
|
+
handleMetaInfoChanged();
|
|
39
37
|
const onUpdate = (e)=>{
|
|
40
38
|
const info = e.detail;
|
|
41
39
|
handleMetaInfoChanged(info);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/client-toolkit",
|
|
3
|
-
"version": "1.1.35-alpha.
|
|
3
|
+
"version": "1.1.35-alpha.dataloom.0",
|
|
4
4
|
"types": "./lib/index.d.ts",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@ant-design/colors": "^7.2.1",
|
|
82
82
|
"@ant-design/cssinjs": "^1.24.0",
|
|
83
|
-
"@data-loom/js": "
|
|
83
|
+
"@data-loom/js": "0.4.4-auth-alpha.14",
|
|
84
84
|
"@lark-apaas/miaoda-inspector": "^1.0.7",
|
|
85
85
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
86
86
|
"@radix-ui/react-popover": "^1.1.15",
|