Vuetify配置及图标不显示

//安装框架依赖
npm install vuetify

//安装图标依赖
npm install @mdi/js -D

配置main.js

...引入vue必要依赖
//引入vuetify依赖
import Vuetify from "vuetify";
import "vuetify/dist/vuetify.min.css";
import "@mdi/font/css/materialdesignicons.css";

//vue使用依赖
Vue.use(Vuetify);



new Vue({
  el: "#app",
  router,
  store,
  vuetify: new Vuetify({
    icons: {
      iconfont: "mdi", // default - only for display purposes
    },
  }),
  render: (h) => h(App),
});

你可能感兴趣的:(前端)