|
@@ -68,11 +68,13 @@ export default {
|
68
|
68
|
methods: {
|
69
|
69
|
...mapActions(['getUserConversionRate']),
|
70
|
70
|
getData(e) {
|
71
|
|
- if (!this.dataset[e]) {
|
72
|
|
- this.getUserConversionRate({ conversion: e }).then(this.setDataset)
|
73
|
|
- } else {
|
74
|
|
- this.theCurrent = this.dataset[e]
|
75
|
|
- }
|
|
71
|
+ console.log('e: ', e)
|
|
72
|
+ this.getUserConversionRate({ conversion: e }).then(this.setDataset)
|
|
73
|
+ // if (!this.dataset[e]) {
|
|
74
|
+ // this.getUserConversionRate({ conversion: e }).then(this.setDataset)
|
|
75
|
+ // } else {
|
|
76
|
+ // this.theCurrent = this.dataset[e]
|
|
77
|
+ // }
|
76
|
78
|
},
|
77
|
79
|
setDataset(data) {
|
78
|
80
|
const { pvNum, ...other } = data['data_count']
|
|
@@ -84,6 +86,7 @@ export default {
|
84
|
86
|
break
|
85
|
87
|
}
|
86
|
88
|
|
|
89
|
+
|
87
|
90
|
if (pvNum < num) {
|
88
|
91
|
this.theCurrent = []
|
89
|
92
|
} else {
|