Commit 81ba9c92 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改默认返回值

parent 5c246af7
......@@ -297,7 +297,7 @@ export interface FileData {
export function normalizeFiledata(url: string): FileData
export function normalizeFiledata(url: any): any {
if (!url) {
return url;
return {};
}
const splited = url.split('/');
const fileName = splited && splited.length ? splited[splited.length - 1] : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment