fix: 解决字体跳跃的问题
This commit is contained in:
parent
862612b076
commit
ebebc0eca2
|
@ -129,6 +129,15 @@ export default defineConfig({
|
|||
// 解决首次加载时白屏的问题
|
||||
{ src: '/scripts/loading.js', async: true },
|
||||
],
|
||||
// links: [
|
||||
// {
|
||||
// href: '/fonts/ALIBABA-PUHUITI-MEDIUM.TTF',
|
||||
// rel: 'preload',
|
||||
// as: 'font',
|
||||
// type: 'font/woff2',
|
||||
// crossOrigin: 'anonymous',
|
||||
// },
|
||||
// ],
|
||||
//================ pro 插件配置 =================
|
||||
presets: ['umi-presets-pro'],
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@font-face {
|
||||
font-family: Alibaba;
|
||||
src: url('./ALIBABA-PUHUITI-MEDIUM.TTF');
|
||||
font-display: swap;
|
||||
}
|
Loading…
Reference in New Issue