Browse Source

refactor: .nuxt

flater 4 years ago
parent
commit
189774bb27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/frontend/skill_cert/profile.vue

+ 2 - 2
pages/frontend/skill_cert/profile.vue

@@ -287,9 +287,9 @@
         this.$axios.$post(`/uapi/cert/add`, form).then((value) => {
           if (value.status === 1) {
             // 1未支付,2已支付
-            if (this.form.pay_status === '1') {
+            if (parseInt(this.form.pay_status) === 1) {
               location.href = `/pay?product_type=12&product_id=${form.item_id}&next=/frontend/skill_cert/resume_improve`;
-            } else if (this.form.pay_status === '2') {
+            } else if (parseInt(this.form.pay_status) === 2) {
               this.$router.push(`/frontend/skill_cert/resume_improve`);
             }
           }