uni-app QQ小程序无法预览并且报错
uni-app QQ小程序无法预览并且报错
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Mac | 11.2.3 | HBuilderX |
产品分类:uniapp/小程序/QQ
示例代码:
<template>
<view>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title:'Hello'
}
},
onLoad() {
uni.showToast({
title: 'aaa',
duration: 2000
});
console.log("aaa");
},
methods: {
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>
操作步骤:
任意新建项目都无法预览
预期结果:
可以正常预览,onLoad正常加载
实际结果:
无法正常预览,onLoad无法加载
bug描述:
QQ小程序无法预览,并且报错。 onLoad无法加载
这个是我向腾讯反馈的帖子: https://docs.qq.com/doc/DQ3BucHpkZ29rUGND

更多关于uni-app QQ小程序无法预览并且报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
解决了吗

