@lark-apaas/client-toolkit 1.1.34 → 1.1.35-alpha.1

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.
@@ -23,17 +23,19 @@ 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;
26
28
  }
27
29
  };
28
- const handleMetaInfoChanged = async (info)=>{
29
- if (!info) info = await getAppInfo(true);
30
+ const handleMetaInfoChanged = async (info, refresh = true)=>{
31
+ if (!info) info = await getAppInfo(refresh);
30
32
  updateDomInfo(info);
31
33
  setAppInfo((prev)=>({
32
34
  ...prev,
33
35
  ...info
34
36
  }));
35
37
  };
36
- handleMetaInfoChanged();
38
+ handleMetaInfoChanged(null, false);
37
39
  const onUpdate = (e)=>{
38
40
  const info = e.detail;
39
41
  handleMetaInfoChanged(info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.1.34",
3
+ "version": "1.1.35-alpha.1",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [