nuxt.config.js 1.3 KB

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