nuxt.config.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: '汇融数科',
  5. htmlAttrs: {
  6. lang: 'en'
  7. },
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. { hid: 'description', name: 'description', content: '' },
  12. { name: 'format-detection', content: 'telephone=no' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  16. ]
  17. },
  18. // Global CSS: https://go.nuxtjs.dev/config-css
  19. css: [
  20. 'ant-design-vue/dist/antd.css'
  21. ],
  22. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  23. plugins: [
  24. '@/plugins/antd-ui',
  25. '@/plugins/vant-ui'
  26. ],
  27. // Auto import components: https://go.nuxtjs.dev/config-components
  28. components: true,
  29. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  30. buildModules: [
  31. '@nuxt/postcss8'
  32. ],
  33. // Modules: https://go.nuxtjs.dev/config-modules
  34. modules: [
  35. "@nuxtjs/proxy",
  36. "@nuxtjs/axios"
  37. ],
  38. // proxy:{
  39. // '/api':{
  40. // target:'https://official.webapi.bicredit.xin/api',
  41. // secure:false,
  42. // changeOrigin:true
  43. // }
  44. // },
  45. router: {
  46. middleware:'auth'
  47. },
  48. // Build Configuration: https://go.nuxtjs.dev/config-build
  49. build: {
  50. }
  51. }