onInit(event) {
this.sx.en = event.sx;
// 获取相关推荐文章列表
this.$api.infomationLists({
size: 20
}).then(res => {
if (res.status) {
this.otherList = res.data;
}
})
},

- 发布:2021-01-20 16:49
- 更新:2021-01-20 16:49
- 阅读:607
产品分类: uniapp/小程序/百度
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: big sur
第三方开发者工具版本号: 3.24.0
基础库版本号: 3.260.27
项目创建方式: CLI
CLI版本号: 2.0.0-30520210106003
示例代码:
操作步骤:
页面报错
页面报错
预期结果:
页面正常
页面正常
实际结果:
页面报错
页面报错
bug描述:
onInit能正常执行,但是获取不到vue实例
导致封装好的接口不能直接调用
0 个回复