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