mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
chore: code format
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user