1.当你的css样式中没有使用sass的时候,可以直接引用后缀名为.css的样式文件
<style>
@import '../../satic/index.css';
</style>
或者使用
<style>
@import url('../../static/index.css');
</style>
2.当你使用了sass的时候,引入的样式文件后缀名一定要是.scss
<style lang="scss">
@import '../../static/index.scss';
</style>
或者
<style lang="scss">
@import url('../../static/index.scss');
</style>
同时也需要注意style标签中引入后面必须要跟分号。