fixed match-route over-complication
This commit is contained in:
@@ -22,7 +22,7 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: '/privacy-policy',
|
||||
name: '{PrivacyPolicy}',
|
||||
name: 'PrivacyPolicy',
|
||||
components: {
|
||||
main: lazyLoadView('PrivacyPolicy')
|
||||
}
|
||||
@@ -51,7 +51,7 @@ const routes = [
|
||||
props: true,
|
||||
children: [
|
||||
{
|
||||
path: 'overview',
|
||||
path: '',
|
||||
components: {
|
||||
score: lazyLoadComponent('ScoreTeam')
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@
|
||||
<ul class="list-unstyled d-flex m-auto">
|
||||
<li :title="!data.matchDetails.parsed ? 'This demo has not been parsed' : ''"
|
||||
class="list-item nav-item">
|
||||
<router-link :to="'/match/' + data.matchDetails.match_id + '/overview'" class="nav-link"
|
||||
<router-link :to="'/match/' + data.matchDetails.match_id" class="nav-link"
|
||||
replace>Scoreboard
|
||||
</router-link>
|
||||
</li>
|
||||
@@ -253,9 +253,9 @@ export default {
|
||||
else {
|
||||
errorHandling(404)
|
||||
}
|
||||
} else if (route.fullPath.split('/')[3] === undefined) {
|
||||
} else {
|
||||
if (matchIdPattern.test(props.match_id))
|
||||
GoToLink(`/match/${props.match_id}/overview`)
|
||||
GoToLink(`/match/${props.match_id}`)
|
||||
else {
|
||||
errorHandling(404)
|
||||
}
|
||||
@@ -333,6 +333,7 @@ export default {
|
||||
onMounted(() => {
|
||||
checkRoute()
|
||||
|
||||
|
||||
const headHeight = 230
|
||||
const navHeight = 42
|
||||
|
||||
|
@@ -243,8 +243,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {setTitle} from "@/utils";
|
||||
|
||||
export default {
|
||||
name: "PrivacyPolicy",
|
||||
setup() {
|
||||
setTitle('Privacy Policy')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user