1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // https://nuxt.com/docs/api/configuration/nuxt-config
- const axios = require('axios')
- export default defineNuxtConfig({
- app: {
- head: {
- title: "惠融易客",
- meta: [
- { name: "description", content: "惠融易客助贷系统是一套专门为助贷机构量身打造的金融中介精准获客服务平台。一站式帮助助贷机构,金融居间公司,银行贷款中介老板解决获客难,转化差,管理难等业务难题,提高销售人员效率,提升销售团队业绩!现在申请,可立即试用!" },
- { name: "keywords", content: "助贷获客,信贷拓客,金融中介CRM系统" },
- ],
- script: [
- { src: "isMobile.js" }
- ]
- },
- },
- plugins: [
- // { src: "~/plugins/vant-ui"}
- ],
- css: ["assets/global.scss"],
- vite: {
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: '@import "~/assets/_variables.scss";',
- },
- },
- },
- },
- modules: [
- '@nuxtjs/tailwindcss',
- "@huntersofbook/naive-ui-nuxt",
- '@vant/nuxt',
- ],
- vant: {
- },
- build: {
- transpile: [/^vant-ui/]
- },
- generate: {
- // @ts-ignore
- routes() {
- // @ts-ignore
- return axios.get('https://official.webapi.bicredit.xin/api/news/detail/').then(res => {
- // @ts-ignore
- return res.data.map(user => {
- return {
- route: '/list/' + user.id,
- payload: user
- }
- })
- })
- }
- }
- // generate:{
- // routes:[
- // ['/list/1', '/list/2']
- // ]
- // }
- // imports: {
- // dirs: [
- // // 扫描顶层目录中模块
- // 'composables',
- // // 扫描内嵌一层深度的模块,指定特定文件名和后缀名
- // 'composables/*/index.{ts,js,mjs,mts}',
- // // 扫描给定目录中所有模块
- // 'composables/**'
- // ]
- // },
- });
|