Browse Source

Merge remote-tracking branch 'origin/master'

chd 1 year ago
parent
commit
a82b537cce
2 changed files with 16 additions and 16 deletions
  1. 15 15
      nuxt.config.ts
  2. 1 1
      pages/m_user.vue

+ 15 - 15
nuxt.config.ts

@@ -38,21 +38,21 @@ export default defineNuxtConfig({
   build: {
   build: {
     transpile: [/^vant-ui/]
     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: {
+  //   // @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:{
   // generate:{
   //   routes:[
   //   routes:[
   //     ['/list/1', '/list/2']
   //     ['/list/1', '/list/2']

+ 1 - 1
pages/m_user.vue

@@ -214,7 +214,7 @@
     </n-drawer-content>
     </n-drawer-content>
   </n-drawer>
   </n-drawer>
   <!-- <van-overlay :show="showModal" @click="showModal = false"> -->
   <!-- <van-overlay :show="showModal" @click="showModal = false"> -->
-    <van-dialog v-model:show="showModal" :show-confirm-button="false" title="申请试用">
+    <van-dialog v-model:show="showModal" :show-confirm-button="false" closeDialog title="申请试用">
   <div class="wrapper" @click.stop>
   <div class="wrapper" @click.stop>
     <div class="text-[#999999] text-[12px] pt-[10px] text-center" >
     <div class="text-[#999999] text-[12px] pt-[10px] text-center" >
         为了我们能更好的服务您,请您填写以下信息,
         为了我们能更好的服务您,请您填写以下信息,