feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -282,21 +282,23 @@ const PromotionPosterModal = ({ visible, onClose }) => {
|
||||
};
|
||||
|
||||
// 复制邀请链接
|
||||
const handleCopyLink = () => {
|
||||
const handleCopyLink = async () => {
|
||||
if (!affLink) {
|
||||
showError(t('邀请链接获取中,请稍后'));
|
||||
return;
|
||||
}
|
||||
copy(affLink, t('邀请链接'));
|
||||
if (await copy(affLink)) showSuccess(t('邀请链接已复制到剪切板'));
|
||||
else showError(t('复制失败,请手动复制'));
|
||||
};
|
||||
|
||||
// 复制邀请码
|
||||
const handleCopyCode = () => {
|
||||
const handleCopyCode = async () => {
|
||||
if (!affCode) {
|
||||
showError(t('邀请码获取中,请稍后'));
|
||||
return;
|
||||
}
|
||||
copy(affCode, t('邀请码'));
|
||||
if (await copy(affCode)) showSuccess(t('复制成功'));
|
||||
else showError(t('复制失败,请手动复制'));
|
||||
};
|
||||
|
||||
// 链接分享模式 - PC友好
|
||||
|
||||
Reference in New Issue
Block a user