@antv/dumi-theme-antv 0.3.0-beta.21 → 0.3.0-beta.22

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.
@@ -6,7 +6,7 @@ import { Link, FormattedMessage } from 'dumi';
6
6
  import Slider from 'react-slick';
7
7
  import cx from 'classnames';
8
8
  import { useLocale } from 'dumi';
9
- import { ic } from "../hooks";
9
+ import { ic, icWithLocale } from "../hooks";
10
10
  import 'slick-carousel/slick/slick.css';
11
11
  import 'slick-carousel/slick/slick-theme.css';
12
12
  import styles from "./index.module.less";
@@ -74,7 +74,7 @@ export var Cases = function Cases(_ref) {
74
74
  id: "\u67E5\u770B\u8BE6\u60C5"
75
75
  })) : /*#__PURE__*/React.createElement(Link, {
76
76
  className: styles.detail,
77
- to: app.link[lang] ? app.link[lang] : app.link
77
+ to: icWithLocale(app.link, lang) || ''
78
78
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
79
79
  id: "\u67E5\u770B\u8BE6\u60C5"
80
80
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.3.0-beta.21",
3
+ "version": "0.3.0-beta.22",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {