123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- * @Description:
- * @Author: 欧阳承珺
- * @LastEditors: 欧阳承珺
- * @Date: 2022-10-17 11:06:52
- * @LastEditTime: 2022-11-16 16:42:17
- */
- export default {
- // 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' }],
- },
- env: {
- BASE_URL: process.env.BASE_URL,
- NODE_ENV: process.env.NODE_ENV,
- MODE_ENV: process.env.MODE_ENV
- },
- // Global CSS: https://go.nuxtjs.dev/config-css
- css: [
- '@/assets/main.scss',
- {src:'element-ui/lib/theme-chalk/index.css'},
- ],
- // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
- plugins: [
- '~/plugins/axios',
- {
- src: '~plugins/ga.js',
- ssr: false
- },
- {src: '~plugins/element-ui', ssr: false},
- // {src: '@/plugins/localStorage', ssr: false},
- {src: '@/plugins/vueqr', ssr: false},
- { src: "~/plugins/vue-swiper.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: [
- // https://go.nuxtjs.dev/typescript
- '@nuxt/typescript-build',
- // https://windicss.org/guide/
- 'nuxt-windicss',
- '@nuxtjs/composition-api/module',
- '@nuxtjs/svg'
- ],
- publicRuntimeConfig: {
- pdfDomain: process.env.MODE_ENV === 'production' ? 'https://content.pdfreaderpro.com' : 'https://test-pdf-pro.kdan.cn:3020',
- PDFReaderPro: process.env.MODE_ENV === 'production' ? 'https://www.pdfreaderpro.com' : 'http://test-pdf-pro.kdan.cn:3021',
- },
- // Modules: https://go.nuxtjs.dev/config-modules
- modules: [
- '@nuxtjs/axios',
- '@nuxtjs/proxy',
- ],
- axios: {
- timeout: 3000,
- baseURL: process.env.BASE_URL,
- // prefix: '/17pdf-backend-core',
- },
- // proxy: {
- // '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
- // },
- // Build Configuration: https://go.nuxtjs.dev/config-build
- build: {
- vendor: ['element-ui']
- },
- loading: false,
- //用户输入不存在的路径,跳到首页
- router: {
- extendRoutes(routes, resolve) {
- routes.push({
- path: '*',
- redirect: '/'
- })
- }
- }
- }
|