main.js
import Vue from "vue";
import Router from "vue-router";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
// import {
// Button,
// Layout,
// AutoComplete,
// Affix,
// Tooltip,
// Icon,
// Input,
// Dropdown,
// Carousel,
// Skeleton,
// Spin,
// message
// } from "ant-design-vue";
// import "ant-design-vue/lib/button/style/css.js";
// import "ant-design-vue/lib/layout/style/css.js";
// import "ant-design-vue/lib/auto-complete/style/css.js";
// import "ant-design-vue/lib/affix/style/css.js";
// import "ant-design-vue/lib/tooltip/style/css.js";
// import "ant-design-vue/lib/icon/style/css.js";
// import "ant-design-vue/lib/input/style/css.js";
// import "ant-design-vue/lib/dropdown/style/css.js";
// import "ant-design-vue/lib/carousel/style/css.js";
// import "ant-design-vue/lib/skeleton/style/css.js";
// import "ant-design-vue/lib/spin/style/css.js";
import "./styles/index.less";
import Schema from "async-validator";
import VueLazyload from "vue-lazyload";
// avoid async-validator warining
Schema.warning = function noop() { };
Vue.config.productionTip = false;
Vue.use(Antd);
// Vue.use(Button);
// Vue.use(Layout);
// Vue.use(Affix);
// Vue.use(Tooltip);
// Vue.use(AutoComplete);
// Vue.use(Icon);
// Vue.use(Input);
// Vue.use(Dropdown);
// Vue.use(Carousel);
// Vue.use(Skeleton);
// Vue.use(Spin);
// Vue.prototype.$message = message;
Vue.use(Router);
Vue.use(VueLazyload, {
preLoad: 1.3,
error: require("./assets/logo-single.png"),
loading: require("./assets/logo-single.png"),
attempt: 3
});
new Vue({
router,
store,
render: function render(h) {
return h(App);
}
}).$mount("#app");
不知道为什么样式都失效了
在head标签里没有一个样式
感谢大家帮我解决问题??
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…