友情链接管理;封装上传接口
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
import { useIntl } from 'umi';
|
||||
|
||||
export enum LinkStatusMap {
|
||||
ENABLED = '0',
|
||||
DISABLED = '1',
|
||||
}
|
||||
export const useFriendLinkDict = () => {
|
||||
const intl = useIntl();
|
||||
|
||||
@ -7,11 +11,11 @@ export const useFriendLinkDict = () => {
|
||||
const linkStatusOptions = [
|
||||
{
|
||||
label: intl.formatMessage({ id: 'friendLink.enabled' }),
|
||||
value: '1',
|
||||
value: LinkStatusMap.ENABLED,
|
||||
},
|
||||
{
|
||||
label: intl.formatMessage({ id: 'friendLink.disabled' }),
|
||||
value: '0',
|
||||
value: LinkStatusMap.DISABLED,
|
||||
},
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user