Skip to content

Commit

Permalink
fix: 调整插件版本号展示位置
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Jul 31, 2023
1 parent 0c2fd92 commit ca89719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/pages/sandbox/FeedBack.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { QuestionCircleOutlined } from '@ant-design/icons';
import classnames from 'classnames';
import { pkg } from '@/config';
import { pkg, VERSION } from '@/config';

import styles from './FeedBack.module.less';

Expand All @@ -13,7 +13,7 @@ const FeedBack: React.FC<React.HTMLAttributes<HTMLAnchorElement>> = props => (
href={pkg.issues}
>
<QuestionCircleOutlined className={styles.icon} />
{__i18n('问题反馈')}
{__i18n('问题反馈')}&nbsp;v{VERSION}
</a>
);

Expand Down
11 changes: 0 additions & 11 deletions src/pages/sandbox/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ const UserInfo = (props: Props) => {
</span>
),
},
{
key: 'current-version',
label: (<span>
{__i18n('当前版本')}
&nbsp;v{VERSION}
</span>
),
},
{
key: 'logout',
label: __i18n('退出账户'),
Expand All @@ -100,9 +92,6 @@ const UserInfo = (props: Props) => {
if (n.key === 'upgrade-version') {
return needUpgrade;
}
if (n.key === 'current-version') {
return !needUpgrade;
}
return true;
});
}, [ needUpgrade ]);
Expand Down

0 comments on commit ca89719

Please sign in to comment.