mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
Compare commits
3 Commits
Frontend_1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f8758a9b56 | |||
| 4e39df490a | |||
| 9e1b0b5da1 |
@@ -1,18 +1,13 @@
|
|||||||
# Metr
|
# Metr
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://forma-web.ru">
|
|
||||||
<img alt="Logo" src="metr/logo.svg" width="300" title="Logo">
|
<img alt="Logo" src="metr/logo.svg" width="300" title="Logo">
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/robonen/metr-frontend/actions">
|
<a href="https://github.com/robonen/metr-frontend/actions">
|
||||||
<img src="https://github.com/robonen/metr-frontend/actions/workflows/release.yml/badge.svg" title="Release status">
|
<img src="https://github.com/robonen/metr-frontend/actions/workflows/release.yml/badge.svg" title="Release status">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/robonen/metr-frontend/actions">
|
|
||||||
<img src="https://github.com/robonen/metr-frontend/actions/workflows/test.yml/badge.svg" title="Lint status">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/robonen/metr-frontend/releases">
|
<a href="https://github.com/robonen/metr-frontend/releases">
|
||||||
<img src="https://img.shields.io/github/v/release/robonen/metr-frontend?display_name=tag&label=Last%20Version&color=brightgreen" title="Last version">
|
<img src="https://img.shields.io/github/v/release/robonen/metr-frontend?display_name=tag&label=Last%20Version&color=brightgreen" title="Last version">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -144,13 +144,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
await this.addSearchParam(this.$route.query);
|
await this.addSearchParam(this.$route.query);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route.query'(value) {
|
'$route.query'(value) {
|
||||||
this.addSearchParam(value);
|
this.addSearchParam(value);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const id = this.$route.params.id;
|
const id = this.$route.params.id;
|
||||||
|
|
||||||
if (id === undefined)
|
if (id === undefined)
|
||||||
|
|||||||
@@ -81,6 +81,12 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>>
|
</script>>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user