写项目时,代码使用了
<u-col span="8" >
然后页面一直报
Uncaught (in promise) TypeError: this.parent.getComponentWidth is not a function
在项目里面搜了一下这个方法,发现有
```html
methods: {
async init() {
// 支付宝小程序不支持provide/inject,所以使用这个方法获取整个父组件,在created定义,避免循环引用
this.updateParentData()
this.width = await this.parent.getComponentWidth()
},
```请问怎么解决