"Jazz Shaw" made the point that the current situation in, e.g., SF or LA Counties, is a confluence of Prop 47, "bail reform" rules (not sure whether it's a law - and of so, passed by whom - or bureaucratic rules), and DAs not doing their jobs. As Z posted, changing just one of those big issues won't change the situation, and DAs not doing their jobs is probably the biggest issue among the three. The legislature can deal with (or set in motion dealing with ... undoing Prop 47 may require another proposition) the other two issues, but they cannot force DAs to do their jobs. Until the voters of LA County, SF County (IIRC, those aren't the only ones declining to prosecute all crimes regardless of the PC-hood of the perp) replace Gascon and Boudin with people willing to do the work of cleaning out their cities' and counties' Augean Stables of crime, their cities'/counties' situation won't change significantly.
In the cases of LA and SF Counties, a fourth major issue is their decades of treating The Homeless as Sacred. Those counties (SF is both a city and a county within the same boundaries) need to stop enabling their Sacred Homeless and make living in streets, under freeway overpasses, and in parks (and along park trails ... Knock! Knock! Hello, Santa Clara County?!!!) hard (the working currently-houseless are usually living in their cars, vans, and motor-homes, and thus are different from the druggies/alkies, mental cases, and responsibility-avoiders on the street).