要在script中导入
<script>
import uniIcon from '@/components/uni-icon/uni-icon.vue'
</script>
css导入的方法
<style>
@import ""
</style>
导入模板
<script>
import uniIcon from '@/components/uni-icon/uni-icon.vue'
export default {
components: {
uniIcon
},
data() {
return {
}
}
</script>