真机调试,点击获取头像报错,开发工具获取头像正常;
<form @submit="onSubmit(true, $event)">
<view class="form-item">
<view class="label">头像</view>
<button name="avatarUrl" class="auto primary" :class="{ noBg: formData.avatarUrl }"
style="padding: 10rpx 20rpx;" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
<text v-if="!formData.avatarUrl">授权头像</text>
<image class="avatar" v-else :src="formData.avatarUrl"></image>
</button>
</view>
<view class="form-item">
<view class="label">昵称</view>
<input name="nickName" type="nickname" placeholder="请填写昵称" class="ipt"
v-model="formData.nickName" />
</view>
<view class="foot">
<button @click="onSubmit(false)">取消</button>
<button class="primary" form-type="submit">确定</button>
</view>
</form>
开发工具也报错吗