react_admin_layout

This commit is contained in:
2025-10-08 07:05:50 +07:00
commit 7645838eb8
38 changed files with 7908 additions and 0 deletions

14
src/utils/api.util.ts Normal file
View File

@@ -0,0 +1,14 @@
export const ApiUtil = {
writeQuery: (query: any) => {
console.log("query", query)
let resultStr = ``;
for(let key in query) {
if(query[key] == "") {
continue;
}
resultStr += `${key}=${query[key]}&`
}
return resultStr.slice(0, resultStr.length - 1)
}
}

8
src/utils/form.util.ts Normal file
View File

@@ -0,0 +1,8 @@
import type { FormEvent } from "react";
export const FormUtil = {
resetForm: (e: FormEvent) => {
let form = (e.target) as any;
form.reset();
}
}