mirror of
https://github.com/bufanyun/hotgo.git
synced 2026-01-22 07:06:02 +08:00
发布v2.11.5版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -241,7 +241,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
|
||||
return new VAxios(
|
||||
deepMerge(
|
||||
{
|
||||
timeout: 10 * 1000,
|
||||
timeout: 30 * 1000,
|
||||
authenticationScheme: '',
|
||||
// 接口前缀
|
||||
prefixUrl: urlPrefix,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user