代码拉取完成,页面将自动刷新
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
watchQuery: true,
head: {
title: 'nuxt',
htmlAttrs: {
lang: 'en'
},
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{hid: 'description', name: 'description', content: ''},
{name: 'format-detection', content: 'telephone=no'},
{name: "referrer", content: "never"}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
],
script: [
{
src: '/js/iconfont.js'
}
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ['~/assets/css/main.css'],
target: 'static',
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'@/plugins/axios',
'@/plugins/throttle',
'@/plugins/scroller',
{src: '@/plugins/persistedstate', ssr: false},
],
axios: {
baseURL: 'http://localhost:8000'
},
// proxy: {
// "/api": {
// // 配置接口地址
// target: "http://localhost:8000/",
// pathRewrite: {
// "^/api": "/"
// },
// changeOrigin: true
// }
// },
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
'@nuxtjs/axios',
"@nuxtjs/proxy"
],
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。