mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +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) {
|
||||
const { file, callback = () => {} } = event.detail;
|
||||
if (file.path.indexOf('jpeg') < 0) {
|
||||
if (file.url.indexOf('jpeg') < 0) {
|
||||
wx.showToast({ title: '请选择jpg图片上传', icon: 'none' });
|
||||
callback(false);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user