check add person photo finish
This commit is contained in:
@@ -160,7 +160,13 @@ static formatNode(item:Person): TreeNode
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
static getFileExtension(filename: string): string {
|
||||
const lastDotIndex = filename.lastIndexOf('.');
|
||||
if (lastDotIndex !== -1 && lastDotIndex < filename.length - 1) { // Ensure a dot exists and is not the last character
|
||||
return filename.substring(lastDotIndex + 1);
|
||||
}
|
||||
return ''; // No extension found
|
||||
}
|
||||
static getChildForParentId(proName: MyProName , pid: number,childressNodes: Person[]): TreeNode[] {
|
||||
let result: TreeNode[] =[];
|
||||
let tree_node_child: TreeNode[];
|
||||
|
||||
Reference in New Issue
Block a user