chore: code format

This commit is contained in:
xiaojunnuo
2025-06-29 14:09:09 +08:00
parent 04422a4637
commit 4fcfd089d8
644 changed files with 10845 additions and 13184 deletions
@@ -1,4 +1,4 @@
import {forEach} from "lodash-es";
import { forEach } from "lodash-es";
export function getEnvValue(key: string) {
// @ts-ignore
return import.meta.env["VITE_APP_" + key];
@@ -21,5 +21,5 @@ async function open(path: any) {
}
export const routerUtils = {
open
open,
};
@@ -1,5 +1,5 @@
export function eachTree(tree: any[], callback: (item: any) => void) {
tree.forEach((item) => {
tree.forEach(item => {
callback(item);
if (item.children) {
eachTree(item.children, callback);
@@ -19,5 +19,5 @@ export function treeMap(tree: any[], mapFunc: (item: any) => {}) {
export const treeUtils = {
eachTree,
treeMap
treeMap,
};