主要是element-plus默认为英文,在设置中文的时候报了错

将上面main.ts的红框代码改为如下方式即可

import locale from "element-plus/es/locale/lang/zh-cn";