业务组件中要导入样式文件,制作组件 js 文件的兄弟文件 index.css,然后在组件 js 文件中:import 'index.css' 即可
js
index.css
import 'index.css'