yusheng 1 سال پیش
والد
کامیت
3882d31cdc
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      src/utils/file.js

+ 3 - 0
src/utils/file.js

@@ -3,6 +3,9 @@ import { TOKEN_HEADER_NAME } from '@/config/setting';
 
 // 获取图片反显url
 export function getImageUrl(path) {
+  if (!path) {
+    return;
+  }
   let fileNames = path.split('/');
   let url =
     window.location.origin +