当前位置:网站首页>Solutions to ineffective uniapp import components

Solutions to ineffective uniapp import components

2022-06-29 09:02:00 S Xiaoxiao s 4D smile

Customize footer Components :

 

Introduced when used in parent component :

<template>
      <footer :active="3"></footer>
</template>

<script>
    import footer from '../../../components/footer/footer.vue'
    export default {
	    components: {
	    	footer
	    },
    }
</script>

The above method is invalid and does not display components , There was no error ~

In the template footer Put it in capital letters Footer That's all right. ...

<template>
      <Footer :active="3"></Footer>
</template>

<script>
    import footer from '../../../components/footer/footer.vue'
    export default {
	    components: {
	    	footer
	    },
    }
</script>

原网站

版权声明
本文为[S Xiaoxiao s 4D smile]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/180/202206290818368189.html