1,引入组件

在components目录创建组件,在页面中引入组件

例如引入公共导航栏

创建组件components/Nav.vue

nuxt引入组件和公共样式

引入组件layouts/default.vue

nuxt引入组件和公共样式

2,引入公共样式

assets/css/common.css

在nuxt.config.js中引入

nuxt引入组件和公共样式

若引入less或者sass:

nuxt引入组件和公共样式

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-01-13
  • 2021-07-01
  • 2021-08-03
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-06
  • 2022-01-17
  • 2022-12-23
  • 2021-06-03
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案