Energy storage method of DC link