Report to relevant departments.
Whether it is a team leader or a resigned employee, to put it bluntly, they are all working for a living, and they can get by as long as they can get by with certain things. It's the same as resigning. After all, you have to deal with your colleagues, so try not to get angry when you leave.
Communication and conversation are always the best weapons to solve problems. Discuss our ideas with the team leader. It is best if both parties can reach an ideal departure time. This is not the old society, and you have not signed a contract of sale with the company. It is legitimate and legitimate to propose resignation, and no one should unreasonably obstruct it.