任务增加缓存
This commit is contained in:
@@ -99,6 +99,9 @@
|
||||
|
||||
<script>
|
||||
import {$cache_renwu} from '@/store/cashe.js'
|
||||
import {isEmpty} from '@/utils/util.js'
|
||||
|
||||
|
||||
export default {
|
||||
|
||||
data() {
|
||||
@@ -202,7 +205,7 @@
|
||||
* 获取签到数据
|
||||
*/
|
||||
getsignIn() {
|
||||
if($cache_renwu.signInList&&$cache_renwu.signDays&&$cache_renwu.enable){
|
||||
if($cache_renwu.signInList&&!isEmpty($cache_renwu.signDays)&&!isEmpty($cache_renwu.enable) ){
|
||||
this.signInList =$cache_renwu.signInList
|
||||
this.signDays =$cache_renwu.signDays
|
||||
this.enable =$cache_renwu.enable
|
||||
@@ -366,6 +369,7 @@
|
||||
onPullDownRefresh: function() {
|
||||
console.log(2)
|
||||
$cache_renwu.clear()
|
||||
this.getsignIn()
|
||||
this.getTaskdata();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user