在main.ts中单独引入
import 'vant/es/toast/style' import 'vant/es/dialog/style' import { Toast, Dialog } from 'vant' app.use(Toast) app.use(Dialog)
轻松拿下。