This commit is contained in:
孟帅
2023-11-25 18:36:11 +08:00
parent 40117c700d
commit 70e9f966c3
142 changed files with 5407 additions and 2058 deletions

View File

@@ -241,7 +241,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
return new VAxios(
deepMerge(
{
timeout: 10 * 1000,
timeout: 30 * 1000,
authenticationScheme: '',
// 接口前缀
prefixUrl: urlPrefix,

View File

@@ -192,16 +192,12 @@ export function getTreeItem(data: any[], key?: string | number): any {
return result;
}
/**
* 找到所有节点
* */
const treeAll: any[] = [];
export function getTreeAll(data: any[]): any[] {
const treeAll: any[] = [];
data.map((item) => {
treeAll.push(item.key);
if (item.children && item.children.length) {
getTreeAll(item.children);
treeAll.push(...getTreeAll(item.children));
}
});
return treeAll;