user: do like project on route changes
This commit is contained in:
parent
219b2d2e2f
commit
6e8cd885aa
|
@ -78,15 +78,12 @@ export default {
|
||||||
run: null
|
run: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
watch: {
|
||||||
if (!to.params.runid) next();
|
$route: async function(route) {
|
||||||
let run = await fetchRun(to.params.runid);
|
if (route.params.runid) {
|
||||||
next(vm => (vm.run = run));
|
this.run = await fetchRun(route.params.runid);
|
||||||
},
|
}
|
||||||
async beforeRouteUpdate(to, from, next) {
|
}
|
||||||
if (!to.params.runid) next();
|
|
||||||
this.run = await fetchRun(to.params.runid);
|
|
||||||
next();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
ownerLink: ownerLink,
|
ownerLink: ownerLink,
|
||||||
|
|
Loading…
Reference in New Issue