通过全局配置解决网页jquery,bootstrap加载时序问题
This commit is contained in:
parent
6b26c641b2
commit
9ec95590e8
|
|
@ -12,15 +12,7 @@ export default defineNuxtConfig({
|
||||||
},
|
},
|
||||||
|
|
||||||
// Sitemap配置
|
// Sitemap配置
|
||||||
sitemap: {
|
sitemap: {},
|
||||||
hostname: 'https://ccttiot.com',
|
|
||||||
gzip: true,
|
|
||||||
routes: [
|
|
||||||
'/',
|
|
||||||
'/about',
|
|
||||||
'/sharedSolutions/eBike'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
fonts: {
|
fonts: {
|
||||||
providers: {
|
providers: {
|
||||||
|
|
@ -70,6 +62,18 @@ export default defineNuxtConfig({
|
||||||
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
|
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
|
||||||
{rel: 'apple-touch-icon', href: '/apple-touch-icon.png'},
|
{rel: 'apple-touch-icon', href: '/apple-touch-icon.png'},
|
||||||
{rel: 'manifest', href: '/manifest.json'}
|
{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
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user