如图, 使用uni.chooseImage方法选择图片后, input中的内容会清空.
经过测试发现, 只要是App hide -> App show后, input中的内容就会消失.
付上form表单的代码:
<form @submit="formSubmit" @reset="formReset">
<view class="uni-list">
<view class="uni-list-cell">
<view class="uni-list-cell-left">input :</view>
<view class="uni-list-cell-db">
<input class="uni-input" name="input" type="text" placeholder="请输入input" value="" />
</view>
</view>
<view class="uni-list-cell">
<view class="uni-uploader">
<view class="uni-uploader-body">
<view class="uni-uploaderfiles">
<block v-for="(image,imageIndex) in imageList" :key="imageIndex">
<view class="uni-uploaderfile">
<image class="uni-uploaderimg" :src="image" :data-src="image" @tap="previewImage"></image>
</view>
</block>
<view class="uni-uploaderinput-box">
<view class="uni-uploader__input" @tap="chooseImage()"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="uni-btn-v">
<button formType="submit" type="primary">保存</button>
</view>
</form>