修改build报错
This commit is contained in:
1 parent
0875623605
commit
dc805b250f
1 file changed
+1
-1
@@ -58,7 +58,7 @@ const officeObjectUrl = ref<string>('');
|
||||
const getExt = (raw: string) => {
|
||||
const clean = (raw.split('?')[0] ?? '').toLowerCase();
|
||||
const parts = clean.split('/');
|
||||
const lastPart = parts[parts.length - 1];
|
||||
const lastPart = parts[parts.length - 1] ?? '';
|
||||
const i = lastPart.lastIndexOf('.');
|
||||
return i >= 0 ? lastPart.slice(i + 1) : '';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user