⚡ 全面优化 2026 前端响应式体验与加载性能

完成 FileCodeBox 2026 全站桌面端、平板和移动端的视觉交互复核,补齐文件选择后的批量操作闭环,并降低公共首屏的字体与低频依赖成本。

- 为移动文件列表增加全选、已选数量、批量编辑、策略与删除固定栏,并补充详情删除和空筛选重置
- 优化设置保存栏、分区导航、发送过期控件、仪表盘日期与图表操作、分页和记录抽屉
- 为后台侧栏增加遮罩、滚动锁定、Escape 关闭和焦点返回,完善登录密码可见性与国际化
- 移除全站强制 DingTalk 字体,按需加载 JSZip、Marked 和 DOMPurify,并停止空闲提示定时器
- 已通过架构检查、Vue 类型检查、ESLint、生产构建、48 组多视口明暗模式矩阵及核心流程回归
This commit is contained in:
orion committed 2026-07-21 16:44:45 +08:00
1 parent fa6b484d17
commit aa3743b42d
26 files changed
+488 -441

No files matched your search

+6 -4
View File
@@ -3,8 +3,10 @@ import { AuthService } from '@/services'
import { useAdminStore } from '@/stores/adminStore'
import { useAlertStore } from '@/stores/alertStore'
import { getErrorMessage } from '@/utils/common'
import { useI18n } from 'vue-i18n'
export function useAdminLogin() {
const { t } = useI18n()
const alertStore = useAlertStore()
const adminStore = useAdminStore()
const password = ref('')
@@ -12,12 +14,12 @@ export function useAdminLogin() {
const validateForm = () => {
if (!password.value) {
alertStore.showAlert('无效的密码', 'error')
alertStore.showAlert(t('manage.login.invalidPassword'), 'error')
return false
}
if (password.value.length < 6) {
alertStore.showAlert('密码长度至少为6位', 'error')
alertStore.showAlert(t('manage.login.passwordTooShort'), 'error')
return false
}
@@ -31,7 +33,7 @@ export function useAdminLogin() {
try {
const response = await AuthService.login(password.value)
if (!response.detail?.token) {
alertStore.showAlert('登录失败:未获取到有效令牌', 'error')
alertStore.showAlert(t('manage.login.noValidToken'), 'error')
return false
}
@@ -44,7 +46,7 @@ export function useAdminLogin() {
})
return true
} catch (error: unknown) {
alertStore.showAlert(getErrorMessage(error, '登录失败'), 'error')
alertStore.showAlert(getErrorMessage(error, t('manage.login.loginFailed')), 'error')
return false
} finally {
isLoading.value = false
+1
View File
@@ -174,6 +174,7 @@ export function useRetrieveFlow() {
}
const deleteRecord = (id: number) => {
if (!window.confirm(t('fileRecord.deleteRecordConfirm'))) return
const index = records.value.findIndex((record) => record.id === id)
if (index !== -1) {
fileStore.deleteReceiveData(index)
+1
View File
@@ -300,6 +300,7 @@ export function useSendFlow() {
}
const deleteRecord = (id: number) => {
if (!window.confirm(t('fileRecord.deleteRecordConfirm'))) return
const index = fileDataStore.shareData.findIndex((record) => record.id === id)
if (index !== -1) {
fileDataStore.deleteShareData(index)