Skip to content

Commit

Permalink
Merge pull request #1353 from CVEProject/srl-tat-782
Browse files Browse the repository at this point in the history
#782 adding logging
  • Loading branch information
athu-tran committed Oct 3, 2022
2 parents e10427c + 1df0953 commit 7ebc576
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/views/CVERecord/CveJsonView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ export default ({
},
methods: {
getJSon() {
debugger
if (_.isEmpty(this.$store.state.recordData) && _.isEmpty(this.$store.state.idData)) this.$router.push('/');
if (!_.isUndefined(this.$store.state.isArecord) && !_.isEmpty(this.$store.state.recordData)) {
console.log('1, ', _.isEmpty(this.$store.state.recordData), _.isEmpty(this.$store.state.idData));
console.log('2, ', _.isUndefined(this.$store.state.isArecord), !_.isUndefined(this.$store.state.isArecord));
console.log('3, ', _.isEmpty(this.$store.state.recordData), !_.isEmpty(this.$store.state.recordData));
console.log('4, ', _.isEmpty(this.$store.state.idData), !_.isEmpty(this.$store.state.idData));
if (_.isUndefined(this.$store.state.isArecord) || (_.isEmpty(this.$store.state.recordData) && _.isEmpty(this.$store.state.idData))) {
this.$router.push('/');
}
if (this.$store.state.isArecord && !_.isEmpty(this.$store.state.recordData)) {
this.record = this.$store.state.recordData;
} else if (!!_.isUndefined(this.$store.state.isArecord) && !_.isEmpty(this.$store.state.idData)) {
} else if (!this.$store.state.isArecord && !_.isEmpty(this.$store.state.idData)) {
this.record = this.$store.state.idData;
} else {
this.$router.push('/');
Expand Down

0 comments on commit 7ebc576

Please sign in to comment.