Skip to content

Commit

Permalink
Merge pull request #1362 from CVEProject/srl-tat-782
Browse files Browse the repository at this point in the history
#782 assign cveId via method
  • Loading branch information
athu-tran committed Oct 4, 2022
2 parents 2891552 + ea340f9 commit d3daac6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/CVERecord/CveJsonView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="cve-json-container">
<h1 class="title">{{localStorage.getItem('cveId')}}</h1>
<h1 class="title">{{cveId}}</h1>
<JsonTree :raw="JSON.stringify(record, null, 2)"></JsonTree>
</div>
</template>
Expand All @@ -17,13 +17,15 @@ export default ({
data() {
return {
record: {},
cveId: '',
};
},
created() {
this.getJSon();
},
methods: {
getJSon() {
this.cveId = localStorage.getItem('cveId');
const isArecord = localStorage.getItem('isArecord');
const recordData = JSON.parse(localStorage.getItem('recordData'));
const idData = JSON.parse(localStorage.getItem('idData'));
Expand Down

0 comments on commit d3daac6

Please sign in to comment.