1.写一个简单的子组件main/index.vue: <template> <view> </view> </template> <script> export default { data(){ return {