Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 5ac09b8

Browse files
committed
fix: small change to read url if only on the report route
1 parent 847bb66 commit 5ac09b8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dmriprepViewer/src/components/Report.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export default {
105105
// console.log('in created', this.$route.query);
106106
if (this.$route.query) {
107107
// load the json
108-
if (!this.$route.query.url) {
109-
// this.$router.push('/');
108+
if (!this.$route.query.url && this.$route.name === 'Report') {
109+
this.$router.push('/');
110110
} else {
111111
axios.get(this.$route.query.url).then((resp) => {
112112
this.report = resp.data;
@@ -140,8 +140,7 @@ export default {
140140
$route() {
141141
if (this.$route.query) {
142142
// load the json
143-
console.log(this.$route.name);
144-
if (!this.$route.query.url) {
143+
if (!this.$route.query.url && this.$route.name === 'Report') {
145144
// this.$router.push('/');
146145
} else {
147146
axios.get(this.$route.query.url).then((resp) => {

0 commit comments

Comments
 (0)