Commit 1faf6ec5 authored by 卢均锐's avatar 卢均锐

fix: [19553] 修改提示语

parent e0cda034
......@@ -85,7 +85,7 @@ const Add = () => {
let _str = value;
_str = _str.replace(/[\u4E00-\u9FA5]/g, "AA");
if (_str.length > 30 * 2) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'detail.purchase.tips19' })}${30 * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })}${30}${intl.formatMessage({ id: 'detail.purchase.tips18' })}`))
return Promise.reject(new Error(`最长60个字符,30个汉字`))
} else {
return Promise.resolve();
}
......@@ -99,7 +99,7 @@ const Add = () => {
let _str = value;
_str = _str.replace(/[\u4E00-\u9FA5]/g, "AA");
if (value.length > 60 * 2) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'detail.purchase.tips19' })}${60 * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })}`))
return Promise.reject(new Error(`最长120个字符`))
} else {
return Promise.resolve();
}
......
......@@ -138,7 +138,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
let _str = value;
_str = _str.replace(/[\u4E00-\u9FA5]/g, "AA");
if (_str.length > maxNumber * 2) {
return { type: 'error', message: `${intl.formatMessage({ id: 'detail.purchase.tips19' })}${maxNumber * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })},${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}` };
return { type: 'error', message: `最长${maxNumber * 2}个字符,${maxNumber}个汉字` };
} else {
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment