代码拉取完成,页面将自动刷新
同步操作将从 eoctdm/nuxt3-chinese-examples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import headConfig from "./assets/data/head.js"
const baseURL = "/";
export default defineNuxtConfig({
routeRules: {
},
css: [
'~/assets/css/app.scss',
'bootstrap/dist/css/bootstrap.min.css',
'bootstrap-icons/font/bootstrap-icons.scss',
'ant-design-vue/dist/antd.css',
],
modules: [
'@nuxt/content',
'@nuxtjs/color-mode'
],
app: {
baseURL,
pageTransition: { name: 'page', mode: 'out-in' },
layoutTransition: { name: 'rotate', mode: 'out-in' },
head: {
charset: 'utf-16',
viewport: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no',
title: headConfig.data.title,
htmlAttrs: {
lang: 'zh'
},
meta: [
{ name: 'content-type', content: 'text/html;charset=utf-8' },
{ name: 'keywords', content: headConfig.data.keywords},
{ name: 'description', content: headConfig.data.description},
{ ['http-equiv']: 'x-ua-compatible', content: 'ie=edge,chrome=1' },
{ name: 'baidu-site-verification', content: '' },
{ property: 'og:title', content: headConfig.data.title },
{ property: 'og:keywords', content: headConfig.data.keywords },
{ property: 'og:description', content: headConfig.data.description },
],
link: [
{ rel: 'shortcut icon', href: baseURL+'favicon.ico', type: 'image/x-icon'},
/* 客户端引用bootstrap方式,不推荐
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css', integrity: 'sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi', crossorigin: 'anonymous' },
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css', integrity: '', crossorigin: 'anonymous' },
*/
],
script: [
{ src: 'https://hm.baidu.com/hm.js?f6f1fef5f3a52df081128b261a04438c' },
/* 客户端引用bootstrap方式,不推荐;在script和link中,使用body: true配置将其添加到body里最后元素
{ body: true, src: 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js', integrity: 'sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3', crossorigin: 'anonymous' },
{ body: true, src: 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js', integrity: 'sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk', crossorigin: 'anonymous' },
*/
],
}
},
/* 全局动态引用组件,页面无需resolveComponent,不推荐
components: {
global: true,
dirs: ['~/components']
},
*/
imports: {
dirs: [
'composables/**',
]
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "assets/css/variable.scss";',
}
}
}
}
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。