1. First, search Baidu for the save-ps-to-svg 1.0 script file and download it.
2. Then put the save-ps-to-svg 1.0.jsx file into the installation directory of the ps /Presets/Scripts folder.
3. Then open ps and select the shape tool in the left toolbar to draw. No matter what tools you use, you need shape drawing to export svg format.
4. Then name the shape on the right. Svg format, and save it as psd file first.
5. Then click the file in the menu bar and select Script → Save as svg.