123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import env from './static/domain';
- export default {
- env:{
- ...env
- },
- // Global page headers: https://go.nuxtjs.dev/config-head
- head: {
- title: '信息看板',
- 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' }
- ]
- },
- loading: {
- color: 'blue', // 进度条的颜色
- failedColor: 'red', // 页面加载失败时的颜色( 当 data 或 fetch 方法返回错误时)
- height: '2px', // 进度条的高度(在进度条元素的 style 属性上体现)
- throttle: 200, // 在 ms 中, 在显示进度条之前等待指定的时间。 用于防止条形闪烁
- duration: 5000, // 进度条的最大显示时长, 单位毫秒。 Nuxt.js 假设页面在该时长内加载完毕
- continuous: false, // 当加载时间超过duration时, 保持动画进度条
- css: true, // 设置为 false 以删除默认进度条样式( 并添加自己的样式)
- rtl: false // 从右到左设置进度条的方向
- },
- // Global CSS: https://go.nuxtjs.dev/config-css
- css: [
- 'element-ui/lib/theme-chalk/index.css',
- 'vant/lib/index.css',
- '~assets/index.scss',
- '~assets/iconfont.css',
- '~assets/main.css',
- '~assets/quill.core.css',
- '~assets/quill.bubble.css',
- '~assets/quill.snow.css'
- ],
- // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
- plugins: [
- { src: '~plugins/element-ui', ssr: true },
- { src: '~plugins/vue-vant', ssr: true },
- ],
- // 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: [
- ],
- // Build Configuration: https://go.nuxtjs.dev/config-build
- build: {
- transpile: [/^element-ui/],
- }
- }
|