perf: 收敛前端按需加载与图标导入
- 延迟加载第三方登录组件并使用按需 SVG 图标入口 - 修复 CardList 图标依赖并整理组件格式
This commit is contained in:
@@ -127,11 +127,12 @@ const strategyOptions = [
|
||||
},
|
||||
];
|
||||
|
||||
const fileExt = computed(() =>
|
||||
String(props.documentTitle || '')
|
||||
.split('.')
|
||||
.pop()
|
||||
?.toLowerCase() || '',
|
||||
const fileExt = computed(
|
||||
() =>
|
||||
String(props.documentTitle || '')
|
||||
.split('.')
|
||||
.pop()
|
||||
?.toLowerCase() || '',
|
||||
);
|
||||
|
||||
const isPptx = computed(() => fileExt.value === 'pptx');
|
||||
|
||||
Reference in New Issue
Block a user