通过全局配置解决网页jquery,bootstrap加载时序问题

This commit is contained in:
WindowBird 2025-10-15 11:32:16 +08:00
parent 6b26c641b2
commit 9ec95590e8

View File

@ -12,15 +12,7 @@ export default defineNuxtConfig({
},
// Sitemap配置
sitemap: {
hostname: 'https://ccttiot.com',
gzip: true,
routes: [
'/',
'/about',
'/sharedSolutions/eBike'
]
},
sitemap: {},
fonts: {
providers: {
@ -70,6 +62,18 @@ export default defineNuxtConfig({
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{rel: 'apple-touch-icon', href: '/apple-touch-icon.png'},
{rel: 'manifest', href: '/manifest.json'}
],
script: [
{
src: '/js/jquery-1.10.2.js',
type: 'text/javascript',
defer: true
},
{
src: '/js/bootstrap.min.js',
type: 'text/javascript',
defer: true
}
]
}
}