No, she didn't. Harris and Willie Brown dated for less than two years...openly. They broke up in 1995...surprising many.
She was a deputy DA for Alameda County in 1990...before she knew Willie Brown. Brown appointed her to several boards after their relationship began but that, apparently, was SOP in CA where lucrative appointments went to friends and family. She kept her ADA job...which Brown had absolutely nothing to do with and where she built a reputation.
She was recruited by SF DA Hallinan as an ADA in 1998 - three years after her relationship with Brown ended. She became the chief of the Career Criminal Division. In a break with the office, she opposed trying juveniles in Superior Court and left the office going to work in City Hall.
She was ELECTED to the position of DA in 2003, beating Hallinan...did she sleep with all those voters? She ran unopposed in her next election...did she sleep with all her erstwhile opponents to prevent them from entering the race? How did she sleep her way to state AG in 2010 - another elected position? Who did she sleep with when she was elected to replace Barbara Boxer in 2016? I assume you think she slept with Joe Biden to get the VP job? No?
Can you define exactly how she "slept her way to the top" based on a single relationship that lasted two years in the mid-90's?
To equate her character with that of Donald Trump is absolutely idiotic. The "slept her way to the top" story is nothing but a racist, misogynistic trope. I'm surprised you swallowed it so readily.
*edit: and all that said, I opposed her selection and still believe she was a poor choice but it had nothing to do with all that bullshit - I just didn't think she was the right person for the job.