move code to utils/file

This commit is contained in:
lloydzhou
2024-07-15 20:09:21 +08:00
parent e2f0206d88
commit 33450ce429
6 changed files with 88 additions and 89 deletions

View File

@@ -6,9 +6,10 @@ import locales from "@/app/locales";
import { nanoid } from "nanoid";
import { useIndexedDB } from "react-indexed-db-hook";
import { StoreKey } from "@/app/constant";
import { SdDbInit, useSdStore } from "@/app/store/sd";
import { useSdStore } from "@/app/store/sd";
import { FileDbInit } from "@/app/utils/file";
SdDbInit();
FileDbInit();
const sdCommonParams = (model: string, data: any) => {
return [