之前是用了组件的自动导入的插件 unplugin-vue-components 在谷歌140版本中显示正常,但是在80版本中样式没有加载
解决方法: 卸载 unplugin-vue-components 同时也删除components.d.ts文件
改用在main.ts全局引入
//main.tsimport Antd from 'ant-design-vue'const app = createApp(App)app.use(Antd)
在app.vue中添加如下:
//App.vueimport { StyleProvider, legacyLogicalPropertiesTransformer } from 'ant-design-vue'<StyleProvider hash-priority="high" :transformers="[legacyLogicalPropertiesTransformer]"><router-view /></StyleProvider>