|
|
@ -2,69 +2,75 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2023-04-21 16:14:15
|
|
|
|
* @LastEditTime: 2022-07-07 17:31:39
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
|
|
head: {
|
|
|
|
head: {
|
|
|
|
title: "马士兵严选",
|
|
|
|
title: '马士兵严选',
|
|
|
|
htmlAttrs: {
|
|
|
|
htmlAttrs: {
|
|
|
|
lang: "zh",
|
|
|
|
lang: 'zh'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
meta: [
|
|
|
|
meta: [
|
|
|
|
{ charset: "utf-8" },
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
|
{ hid: "description", name: "description", content: "" },
|
|
|
|
{ hid: 'description', name: 'description', content: '' },
|
|
|
|
{ name: "format-detection", content: "telephone=no" },
|
|
|
|
{ name: 'format-detection', content: 'telephone=no' }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
link: [{ rel: "icon", type: "image/x-icon", href: "/logo.ico" }],
|
|
|
|
link: [
|
|
|
|
|
|
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/logo.ico' }
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
router: {
|
|
|
|
router: {
|
|
|
|
extendRoutes(routes, resolve) {
|
|
|
|
extendRoutes(routes, resolve) {
|
|
|
|
routes.push({
|
|
|
|
routes.push({
|
|
|
|
name: "custom",
|
|
|
|
name: 'custom',
|
|
|
|
path: "/",
|
|
|
|
path: '/',
|
|
|
|
component: resolve(__dirname, "pages/index/index.vue"),
|
|
|
|
component: resolve(__dirname, 'pages/index/index.vue')
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
middleware: ["redirect"],
|
|
|
|
middleware: ['redirect']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
|
|
css: ["@assets/scss/global.scss", "element-ui/lib/theme-chalk/index.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 to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
|
|
plugins: [
|
|
|
|
plugins: [
|
|
|
|
"@/plugins/element-ui",
|
|
|
|
'@/plugins/element-ui',
|
|
|
|
"@/plugins/axios",
|
|
|
|
'@/plugins/axios',
|
|
|
|
"@/plugins/axiosTk.js",
|
|
|
|
'@/plugins/axiosTk.js',
|
|
|
|
"@plugins/vue-inject.js",
|
|
|
|
'@plugins/vue-inject.js',
|
|
|
|
"@/plugins/v-distpicker",
|
|
|
|
'@/plugins/v-distpicker',
|
|
|
|
"@/plugins/router",
|
|
|
|
'@/plugins/router',
|
|
|
|
"@/plugins/im",
|
|
|
|
'@/plugins/im',
|
|
|
|
"@/plugins/chat",
|
|
|
|
'@/plugins/chat'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
|
|
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
|
|
|
components: true,
|
|
|
|
components: true,
|
|
|
|
|
|
|
|
|
|
|
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
|
|
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
|
|
|
buildModules: [],
|
|
|
|
buildModules: [
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
build: {
|
|
|
|
build: {
|
|
|
|
vendor: ["v-distpicker"],
|
|
|
|
vendor: ['v-distpicker']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
styleResources: {
|
|
|
|
styleResources: {
|
|
|
|
scss: "@/assets/scss/global.scss",
|
|
|
|
scss: '@/assets/scss/global.scss'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
|
|
modules: [
|
|
|
|
modules: [
|
|
|
|
"@nuxtjs/axios",
|
|
|
|
'@nuxtjs/axios',
|
|
|
|
"cookie-universal-nuxt",
|
|
|
|
'cookie-universal-nuxt',
|
|
|
|
"@nuxtjs/style-resources",
|
|
|
|
'@nuxtjs/style-resources'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
|
@ -73,19 +79,19 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
axios: {
|
|
|
|
axios: {
|
|
|
|
// 表示开启代理
|
|
|
|
// 表示开启代理
|
|
|
|
// proxy: true,
|
|
|
|
proxy: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
proxy: {
|
|
|
|
proxy: {
|
|
|
|
// '/mall/': {
|
|
|
|
'/mall/': {
|
|
|
|
// target: 'https://you-gateway.mashibing.com/', // 目标接口域名
|
|
|
|
target: 'https://you-gateway.mashibing.com/', // 目标接口域名
|
|
|
|
// // target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名
|
|
|
|
// target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名
|
|
|
|
// pathRewrite: {
|
|
|
|
pathRewrite: {
|
|
|
|
// changeOrigin: true, // 表示是否跨域
|
|
|
|
changeOrigin: true, // 表示是否跨域
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
port: 3000, // default: 3000
|
|
|
|
host: "0.0.0.0",
|
|
|
|
host: '0.0.0.0' // default: localhost,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|