1 Star 6 Fork 0

LinMing/nuxt-axios-package

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.js 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
LinMing 提交于 2022-08-15 23:16 . feat: nuxt中axios封装方法
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Nuxt中Axios的封装模板',
htmlAttrs: {
lang: 'zh',
},
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: 'keyword', content: 'nuxt,axios,vue' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: ['@/plugins/axios'],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/linmingyoga/nuxt-axios-package.git
[email protected]:linmingyoga/nuxt-axios-package.git
linmingyoga
nuxt-axios-package
nuxt-axios-package
master

搜索帮助