Simulation of Li Dendrite Inhibition in Lithium Battery by Phase-Field Method