Browse Source

feat: 文件上传添加APP的条件判断

test2
wally 4 years ago
parent
commit
5d4c1beb08
  1. 1
      CHANGELOG.md
  2. 7
      plugins/p-deliver-upload/p-deliver-upload.vue

1
CHANGELOG.md

@ -91,6 +91,7 @@
- | defineExpose, defineEmits不需要引入 | [902cacc](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/902cacc)
- | 上个提交导致的bug | [7524b24](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/7524b24)
交付物 | 修复检查人选择组件之间相互影响的bug | [435c0bd](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/435c0bd)
- | 交付物未上传显示小红点 | [b07621e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b07621e)
交付物 | 重构交付物审核部分,修复审核bug | [5fd8889](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/5fd8889)
- | 修复p-deliver报错taskRef的问题 | [880cf7c](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/880cf7c)
- | 修复一些内容 | [3cdb1ce](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3cdb1ce)

7
plugins/p-deliver-upload/p-deliver-upload.vue

@ -171,6 +171,11 @@ function paste() {
//
async function uploadFile() {
// #ifdef APP-PLUS
uni.$ui.showToast('APP暂不支持上传文件')
// #endif
// #ifdef H5
try {
const data = await uni.$upload.chooseAndUpload(UPLOAD_URL, {}, UPLOAD_EXTENSION, 'files');
// console.log(data[0]);
@ -178,6 +183,8 @@ async function uploadFile() {
} catch (error) {
console.error('error: ', error);
}
// #endif
}
// TODO:

Loading…
Cancel
Save