We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a56f11 commit b556be7Copy full SHA for b556be7
src/views/Home.vue
@@ -76,14 +76,15 @@ export default {
76
this.getCVERecordsCount();
77
},
78
computed: {
79
- API_BASE() { return this.$store.state.API_BASE; },
+ CVE_SERVICES_API_BASE() { return this.$store.state.CVE_SERVICES_API_BASE; },
80
81
methods: {
82
getCVERecordsCount() {
83
+ console.log(`${this.CVE_SERVICES_API_BASE}/api/cve?count_only=1`);
84
axios
- .get(`${this.API_BASE}cve-count.json`, { timeout: 30000 })
85
+ .get(`${this.CVE_SERVICES_API_BASE}/api/cve?count_only=1`, { timeout: 30000 })
86
.then((res) => {
- let count = this.$sanitize(res.data.count);
87
+ let count = this.$sanitize(res.data.totalCount);
88
count = this.$sanitize(count);
89
count = parseInt(count, 10);
90
0 commit comments