Vue加载外部样式的方式
第一种:import方式
router 跳转后 在跳转回来 import 引的文件消失
<style scope>
@import 'css路径'
/* 填写样式*/
</style>
第二种:src中添加样式
引入的文件为当前页面局部样式,router 跳转后再跳转回来,样式还在
<style src="'css路径1'" scope></style>
<style src="'css路径2'" scope></style>
<style socpe>
/* 填写样式*/
</style>