|
|
|
@ -2,75 +2,69 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-07-15 11:39:08
|
|
|
|
|
* @LastEditTime: 2023-04-21 16:14:15
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
export default {
|
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
|
|
|
head: {
|
|
|
|
|
title: '马士兵严选',
|
|
|
|
|
title: "马士兵严选",
|
|
|
|
|
htmlAttrs: {
|
|
|
|
|
lang: 'zh'
|
|
|
|
|
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' }
|
|
|
|
|
{ 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: '/logo.ico' }
|
|
|
|
|
]
|
|
|
|
|
link: [{ rel: "icon", type: "image/x-icon", href: "/logo.ico" }],
|
|
|
|
|
},
|
|
|
|
|
router: {
|
|
|
|
|
extendRoutes(routes, resolve) {
|
|
|
|
|
routes.push({
|
|
|
|
|
name: 'custom',
|
|
|
|
|
path: '/',
|
|
|
|
|
component: resolve(__dirname, 'pages/index/index.vue')
|
|
|
|
|
})
|
|
|
|
|
name: "custom",
|
|
|
|
|
path: "/",
|
|
|
|
|
component: resolve(__dirname, "pages/index/index.vue"),
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
middleware: ['redirect']
|
|
|
|
|
middleware: ["redirect"],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 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: [
|
|
|
|
|
'@/plugins/element-ui',
|
|
|
|
|
'@/plugins/axios',
|
|
|
|
|
'@/plugins/axiosTk.js',
|
|
|
|
|
'@plugins/vue-inject.js',
|
|
|
|
|
'@/plugins/v-distpicker',
|
|
|
|
|
'@/plugins/router',
|
|
|
|
|
'@/plugins/im',
|
|
|
|
|
'@/plugins/chat'
|
|
|
|
|
"@/plugins/element-ui",
|
|
|
|
|
"@/plugins/axios",
|
|
|
|
|
"@/plugins/axiosTk.js",
|
|
|
|
|
"@plugins/vue-inject.js",
|
|
|
|
|
"@/plugins/v-distpicker",
|
|
|
|
|
"@/plugins/router",
|
|
|
|
|
"@/plugins/im",
|
|
|
|
|
"@/plugins/chat",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
|
|
|
|
components: true,
|
|
|
|
|
|
|
|
|
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
|
|
|
|
buildModules: [
|
|
|
|
|
],
|
|
|
|
|
buildModules: [],
|
|
|
|
|
|
|
|
|
|
build: {
|
|
|
|
|
vendor: ['v-distpicker']
|
|
|
|
|
vendor: ["v-distpicker"],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
styleResources: {
|
|
|
|
|
scss: '@/assets/scss/global.scss'
|
|
|
|
|
scss: "@/assets/scss/global.scss",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
|
|
|
modules: [
|
|
|
|
|
'@nuxtjs/axios',
|
|
|
|
|
'cookie-universal-nuxt',
|
|
|
|
|
'@nuxtjs/style-resources'
|
|
|
|
|
"@nuxtjs/axios",
|
|
|
|
|
"cookie-universal-nuxt",
|
|
|
|
|
"@nuxtjs/style-resources",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
|
|
@ -92,6 +86,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: 3000,
|
|
|
|
|
host: '0.0.0.0'
|
|
|
|
|
host: "0.0.0.0",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|