开放平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

64 linhas
1.4 KiB

  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. ],
  13. link: [
  14. { rel: 'icon', type: 'image/x-icon', href: '/img/favicon.ico' }
  15. ]
  16. },
  17. // Global CSS: https://go.nuxtjs.dev/config-css
  18. css: [
  19. 'element-ui/lib/theme-chalk/index.css',
  20. "swiper/swiper-bundle.min.css",
  21. './static/css/app.scss',
  22. './static/css/common.scss',
  23. "vue-json-viewer/style.css"
  24. ],
  25. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  26. plugins: [
  27. '@/plugins/element-ui',
  28. "@/plugins/vue-swiper.js",
  29. '@/plugins/route.js',
  30. '@/plugins/viewer.js'
  31. ],
  32. // Auto import components: https://go.nuxtjs.dev/config-components
  33. components: true,
  34. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  35. buildModules: [
  36. ],
  37. // Modules: https://go.nuxtjs.dev/config-modules
  38. modules: ["@nuxtjs/axios"],
  39. axios: {
  40. proxy: true
  41. },
  42. proxy: {
  43. "/ws": "https://apis.map.qq.com"
  44. },
  45. router: {
  46. middleware: ['metaTitle']
  47. },
  48. // Build Configuration: https://go.nuxtjs.dev/config-build
  49. build: {
  50. transpile: [/^element-ui/],
  51. vendor: ["axios"]
  52. }
  53. }