1 Star 0 Fork 5

Admin/自动化测试平台vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nuxt.config.js 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
WeiboGe2012 提交于 2020-12-17 16:35 +08:00 . 新增404异常处理页面
export default {
/*
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'universal',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'server',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
// title: process.env.npm_package_name || '自动化测试平台',
title: '自动化测试平台',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/peony.png' }
]
},
/*
** Global CSS
*/
css: [
'element-ui/lib/theme-chalk/index.css'
],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [
'@/plugins/element-ui'
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios'
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
proxy: true
},
proxy: {
// '/system': {
// target: 'http://localhost:8082',
// changeOrigin: true
// }
'/system': 'http://127.0.0.1:8082',
'/interface': 'http://127.0.0.1:8082'
},
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
transpile: [/^element-ui/]
},
router: {
// 在middleware目录下配置的文件
// middleware: 'redirect',
extendRoutes (routes) {
routes.push({
path: '/',
redirect: '/frontsystem'
})
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/huaweijin_1_m13612210289/automated-test-platform-vue.git
git@gitee.com:huaweijin_1_m13612210289/automated-test-platform-vue.git
huaweijin_1_m13612210289
automated-test-platform-vue
自动化测试平台vue
master

搜索帮助