Browse Source

计划bug处理

dev-v1.0.2
庄锐波 4 months ago
parent
commit
c0d7d0eeca
  1. 2
      zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue

2
zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue

@ -341,7 +341,7 @@ const onAfterReadImage = (file) => {
files.forEach((f) => { files.forEach((f) => {
uploadFile(f, (res) => { uploadFile(f, (res) => {
const data = res && res.data ? res.data : res const data = res && res.data ? res.data : res
const filePath = typeof data === 'string' ? data : (data && (data.url || data.fileUrl || data.path)) || '' const filePath = typeof data === 'string' ? data : (data && (data.data || data.url || data.fileUrl || data.path)) || ''
if (filePath) { if (filePath) {
f.url = toFullFileUrl(filePath) f.url = toFullFileUrl(filePath)
if (isVideo(filePath) || isPdf(filePath)) { if (isVideo(filePath) || isPdf(filePath)) {

Loading…
Cancel
Save