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