Merge branch 'StableVersion' into develop
This commit is contained in:
@@ -217,7 +217,7 @@ export default defineComponent({
|
||||
let isTest = ref()
|
||||
let isMurmur = ref()
|
||||
let credits = computed(()=>{
|
||||
return store.state.UserHabit.credits.value
|
||||
return Number(store.state.UserHabit.credits.value)
|
||||
})
|
||||
let activeCredits = ref(false)
|
||||
return {
|
||||
@@ -281,6 +281,7 @@ export default defineComponent({
|
||||
this.operateClick();
|
||||
document.addEventListener("click", this.operateClick);
|
||||
}
|
||||
this.getCredits()
|
||||
this.getLang('')
|
||||
},
|
||||
methods: {
|
||||
@@ -297,16 +298,22 @@ export default defineComponent({
|
||||
UpgradePlan.init()
|
||||
},
|
||||
Assignment(){//任务
|
||||
let num = 123+this.credits
|
||||
this.store.commit('setCredits',num)
|
||||
// let num = 123+this.credits
|
||||
// this.store.commit('setCredits',num)
|
||||
},
|
||||
getCredits(){//刷新当前积分
|
||||
let num = 123+this.credits
|
||||
this.activeCredits = true
|
||||
setTimeout(()=>{
|
||||
if(!this.activeCredits){
|
||||
this.activeCredits = true
|
||||
this.store.dispatch('getCredits').then((rv)=>{
|
||||
setTimeout(()=>{
|
||||
this.activeCredits = false
|
||||
},300)
|
||||
})
|
||||
}else{
|
||||
this.activeCredits = false
|
||||
},300)
|
||||
this.store.commit('setCredits',num)
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
//点击下拉图标出现操作
|
||||
changeShowOperateContent() {
|
||||
|
||||
Reference in New Issue
Block a user