sunlupeng 1 năm trước cách đây
mục cha
commit
59bb078353
2 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 1 1
      src/utils/auth.js
  2. 1 3
      src/views/HomeView/RedeemView.vue

+ 1 - 1
src/utils/auth.js

@@ -1,6 +1,6 @@
 import Cookies from 'js-cookie'
 
-const TokenKey = 'Admin-Token'
+const TokenKey = 'token'
 
 export function getToken() {
   return Cookies.get(TokenKey)

+ 1 - 3
src/views/HomeView/RedeemView.vue

@@ -214,12 +214,10 @@ export default {
             dialogFormVisible:false,
             dialogMsgVisible:false,
             dataForm: {
-                skuId:'',
                 name: '',
                 phone: '',
                 email:'',
                 address: '',
-                skuCount:1,
             },  
             rules: {
                 name: [
@@ -293,7 +291,7 @@ export default {
             const params = {
                 skuId:this.data.skuId,
                 skuSeq:this.data.skuSeq,
-                skuCount:1,
+                skuCount:this.skuCount,
                 total:this.data.price,
                 skuType:this.data.skuType,
                 contact:this.dataForm.name,