chore: 字体文件托管到云空间

This commit is contained in:
pipipi-pikachu 2025-01-03 17:56:36 +08:00
parent f6f584a346
commit b61b770ca1
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ $fonts: 'SourceHanSans', 'SourceHanSerif', 'FangZhengHeiTi', 'FangZhengKaiTi', '
@font-face {
font-display: swap;
font-family: $font;
src: url('../fonts/#{$font}.woff2') format('woff2');
src: url('https://asset.pptist.cn/font/#{$font}.woff2') format('woff2');
}
}

View File

@ -2,6 +2,6 @@ import axios from './config'
export default {
getMockData(filename: string): Promise<any> {
return axios.get(`/mocks/${filename}.json`)
return axios.get(`./mocks/${filename}.json`)
},
}