render ssr

This commit is contained in:
KUN1007 2023-11-05 15:13:33 +08:00
parent 3673c0dc6f
commit a4a8dc9f0d

View file

@ -13,6 +13,8 @@ import '@/styles/index.scss'
const renderPreloadLink = (file: string) => {
if (file.endsWith('.js')) {
return `<link rel="modulepreload" crossorigin href="${file}">`
} else if (file.endsWith('.js')) {
return `<link rel="modulepreload" crossorigin href="${file}">`
} else if (file.endsWith('.css')) {
return `<link rel="stylesheet" href="${file}">`
} else if (file.endsWith('.png')) {