mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-30 04:39:46 +08:00
fix(uploader): fix uploader demo for beforeRead function (#4235)
This commit is contained in:
parent
f5370bc54a
commit
edf7409021
@ -29,7 +29,7 @@ Page({
|
|||||||
|
|
||||||
beforeRead(event) {
|
beforeRead(event) {
|
||||||
const { file, callback = () => {} } = event.detail;
|
const { file, callback = () => {} } = event.detail;
|
||||||
if (file.path.indexOf('jpeg') < 0) {
|
if (file.url.indexOf('jpeg') < 0) {
|
||||||
wx.showToast({ title: '请选择jpg图片上传', icon: 'none' });
|
wx.showToast({ title: '请选择jpg图片上传', icon: 'none' });
|
||||||
callback(false);
|
callback(false);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user