You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.9 KiB
79 lines
1.9 KiB
/*
|
|
* @Author: ch
|
|
* @Date: 2022-05-03 22:14:16
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-05-09 09:56:10
|
|
* @Description: file content
|
|
*/
|
|
export default {
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
head: {
|
|
title: 'shop-pc',
|
|
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' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
]
|
|
},
|
|
router: {
|
|
extendRoutes(routes, resolve) {
|
|
routes.push({
|
|
name: 'custom',
|
|
path: '/',
|
|
component: resolve(__dirname, 'pages/index/index.vue')
|
|
})
|
|
}
|
|
},
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
css: [
|
|
'@assets/scss/global.scss',
|
|
'element-ui/lib/theme-chalk/index.css'
|
|
],
|
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
plugins: [
|
|
'@/plugins/element-ui',
|
|
'@/plugins/axios',
|
|
{ src: '@plugins/axiosTk.js', ssr: false },
|
|
{ src: '@plugins/storeStorage.js', ssr: false },
|
|
],
|
|
|
|
// 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'
|
|
],
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
build: {
|
|
transpile: [/^element-ui/],
|
|
},
|
|
axios: {
|
|
// 表示开启代理
|
|
proxy: true,
|
|
},
|
|
proxy: {
|
|
'/mall/': {
|
|
// target: 'http://114.55.64.39:3004', // 目标接口域名
|
|
target: 'https://you-gateway.mashibing.com/', // 目标接口域名
|
|
pathRewrite: {
|
|
changeOrigin: true, // 表示是否跨域
|
|
},
|
|
},
|
|
}
|
|
}
|