mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
91 lines
2.2 KiB
JavaScript
91 lines
2.2 KiB
JavaScript
|
|
export default {
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
head: {
|
|
title: 'rc-busness',
|
|
|
|
htmlAttrs: {
|
|
lang: 'en'
|
|
},
|
|
script: [
|
|
//{ src: '/js/rem.js' },
|
|
// { src: '/js/flexible.js', type: 'text/javascript', charset: 'utf-8'},
|
|
{ src: 'https://ocstest.royalcanin.com.cn:8081/livechat/chatapp/customer/branch/RoyalCanin/14053/index.js' },
|
|
{ src: '"https://ocstest.royalcanin.com.cn:8081/livechat/chatapp/customer/branch/RoyalCanin/14054/index.js"' }
|
|
|
|
],
|
|
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1,target-densitydpi =1' },
|
|
{ hid: 'description', name: 'description', content: '' },
|
|
{ name: 'format-detection', content: 'telephone=no' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
]
|
|
},
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
css: [
|
|
'vant/lib/index.css',
|
|
'element-ui/lib/theme-chalk/index.css',
|
|
{ src: "swiper/css/swiper.css" }
|
|
|
|
],
|
|
router: {
|
|
middleware: ['metaTitle']
|
|
},
|
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
plugins: [
|
|
'@/plugins/vant',
|
|
'@/plugins/ElementUI',
|
|
{ src: "~/plugins/swiper.js", ssr: false },
|
|
{ src: '@/plugins/localStorage', 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',
|
|
['nuxt-tailvue', {toast: true}],
|
|
|
|
],
|
|
|
|
styleResources: {
|
|
less: '@/assets/style/less/default.less' // less文件路径
|
|
},
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
build: {
|
|
|
|
},
|
|
// axios: {
|
|
// proxy: true,
|
|
// // prefix: '/api/',
|
|
// credentials: true
|
|
// // See https://github.com/nuxt-community/axios-module#options
|
|
// },
|
|
// proxy: {
|
|
// '/api/': {
|
|
// target: 'http://47.96.75.242:10086/smart-admin-api',//这个网站是开源的可以请求到数据的
|
|
// pathRewrite: {
|
|
// '^/api/': '/',
|
|
// changeOrigin: true
|
|
// },
|
|
|
|
// }
|
|
// },
|
|
|
|
}
|