ソースを参照

fix: 修复lint

zhangyuhan 4 年 前
コミット
96e6c04483

+ 1 - 1
jydocs-mobile/src/components/Search.vue

@@ -23,7 +23,7 @@ export default class Empty extends Vue {
     input = ''
 
     created () {
-      this.input = this.defalultValue
+      this.input = this.defalultValue || ''
     }
 
     onSearch () {

+ 1 - 1
jydocs-mobile/src/views/purchase/purchase.vue

@@ -128,7 +128,7 @@ export default class extends Vue {
       }
     })
 
-    this.getListDetail({ B: true }).then((res) => {
+    this.getListDetail({ B: true }).then((res: any) => {
       console.log(res)
       if (res.error_code === 0) {
         this.response.balance = res.points.balance

+ 1 - 1
jydocs-mobile/src/views/purchase/purchasesuccess.vue

@@ -62,7 +62,7 @@ export default class extends Vue {
   }
 
   setSession () {
-    let paydata = sessionStorage.getItem('paydata')
+    let paydata: any = sessionStorage.getItem('paydata')
     console.log(paydata)
     if (paydata) {
       paydata = JSON.parse(paydata)