Commit fe1d2b152c291bda531c5e9f71afb79afeeceae6

Authored by 张志伟
2 parents b77a515f 8e190e95

Merge remote-tracking branch 'origin/wasm-for-update'

1 1 registry=https://registry.npmmirror.com/
2 2 registry=https://mirrors.huaweicloud.com/repository/npm/
3   -registry=https://registry.npmjs.org/
4 3 \ No newline at end of file
  4 +registry=https://registry.npmjs.org/
  5 +@feewee:registry=https://registry.feewee.cn/
5 6 \ No newline at end of file
... ...
package.json
... ... @@ -40,6 +40,7 @@
40 40 "@ant-design/pro-descriptions": "^1.9.10",
41 41 "@ant-design/pro-layout": "^6.24.1",
42 42 "@antv/data-set": "^0.10.2",
  43 + "@feewee/helper-wasm": "^0.1.5",
43 44 "@types/js-cookie": "^2.2.2",
44 45 "@types/qrcode.react": "^1.0.1",
45 46 "@types/react-image-crop": "^8.1.2",
... ...
src/layouts/BasicLayout.tsx
... ... @@ -11,6 +11,7 @@ import { userMenuApi, MenuItem } from "./api";
11 11 import { getUserInfo, UserInfo } from "@/pages/Login/api";
12 12 import { formatMenus } from "./entity";
13 13 import zhCN from "antd/lib/locale-provider/zh_CN";
  14 +import * as wasm from '@feewee/helper-wasm';
14 15 import { ConfigProvider } from "antd";
15 16 import "braft-editor/dist/index.css";
16 17 import "./common.less";
... ... @@ -41,6 +42,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = ({ dispatch, children, ...other
41 42 }
42 43  
43 44 useEffect(() => {
  45 + wasm.check_update();
44 46 userMenuApi()
45 47 .then((res) => {
46 48 setMenuData(formatMenus(res.data!));
... ...