feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面
This commit is contained in:
@@ -258,7 +258,7 @@ export const useTokensData = (openFluentNotification) => {
|
||||
// Batch delete tokens
|
||||
const batchDeleteTokens = async () => {
|
||||
if (selectedKeys.length === 0) {
|
||||
showError(t('请先选择要删除的令牌!'));
|
||||
showError(t('请先选择要删除的密钥!'));
|
||||
return;
|
||||
}
|
||||
setLoading(true);
|
||||
@@ -267,7 +267,7 @@ export const useTokensData = (openFluentNotification) => {
|
||||
const res = await API.post('/api/token/batch', { ids });
|
||||
if (res?.data?.success) {
|
||||
const count = res.data.data || 0;
|
||||
showSuccess(t('已删除 {{count}} 个令牌!', { count }));
|
||||
showSuccess(t('已删除 {{count}} 个密钥!', { count }));
|
||||
await refresh();
|
||||
setTimeout(() => {
|
||||
if (tokens.length === 0 && activePage > 1) {
|
||||
@@ -287,12 +287,12 @@ export const useTokensData = (openFluentNotification) => {
|
||||
// Batch copy tokens
|
||||
const batchCopyTokens = (copyType) => {
|
||||
if (selectedKeys.length === 0) {
|
||||
showError(t('请至少选择一个令牌!'));
|
||||
showError(t('请至少选择一个密钥!'));
|
||||
return;
|
||||
}
|
||||
|
||||
Modal.info({
|
||||
title: t('复制令牌'),
|
||||
title: t('复制密钥'),
|
||||
icon: null,
|
||||
content: t('请选择你的复制方式'),
|
||||
footer: (
|
||||
|
||||
Reference in New Issue
Block a user