优化答题页

This commit is contained in:
Andy Leong
2024-01-18 14:31:09 +08:00
parent 1388bd708c
commit 9d076968f1
4 changed files with 47 additions and 36 deletions

View File

@@ -8,6 +8,7 @@ export const useMainStore = defineStore("counter", {
MBTI: '', //测试结果
prizeCode: 'DKS18', //兑换码
prizeMoney: '8.88', //金额
drawKey: '',
}
},
// 相当于computed属性对state进行二次加工
@@ -23,6 +24,9 @@ export const useMainStore = defineStore("counter", {
},
updateMBTI(type) {
this.MBTI = type
},
updateDrawKey(key) {
this.drawKey = key
}
},
})