更新代码
This commit is contained in:
1 parent
9875832019
commit
943c3708b0
125 files changed
+2009
-1728
No files matched your search
@@ -496,6 +496,8 @@ import UploadFile from "./components/uploadFile.vue";
|
||||
import MoveFile from "./components/moveFile.vue";
|
||||
import RenameCategory from "./components/renameCategory.vue";
|
||||
import CreateCategory from "./components/createCategory.vue";
|
||||
// 日期显示统一为:YYYY-MM-DD
|
||||
import { formatDate } from "@/utils/datetime";
|
||||
|
||||
// 分组相关
|
||||
interface Group {
|
||||
@@ -872,14 +874,7 @@ const formatFileSize = (bytes: number): string => {
|
||||
};
|
||||
|
||||
// 格式化日期
|
||||
const formatDate = (dateStr: string): string => {
|
||||
const date = new Date(dateStr);
|
||||
return date.toLocaleDateString("zh-CN", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// 文件操作
|
||||
const handleFileClick = (file: FileItem) => {
|
||||
|
||||
Reference in new issue
Block a user