nuxt.config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. ],
  26. // Auto import components: https://go.nuxtjs.dev/config-components
  27. components: true,
  28. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  29. buildModules: [
  30. '@nuxt/postcss8'
  31. ],
  32. // Modules: https://go.nuxtjs.dev/config-modules
  33. modules: [
  34. "@nuxtjs/proxy",
  35. "@nuxtjs/axios"
  36. ],
  37. // proxy:{
  38. // '/api':{
  39. // target:'https://official.webapi.bicredit.xin/api',
  40. // secure:false,
  41. // changeOrigin:true
  42. // }
  43. // },
  44. router: {
  45. middleware:'auth'
  46. },
  47. // Build Configuration: https://go.nuxtjs.dev/config-build
  48. build: {
  49. }
  50. }