|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <ol>
|
|
|
+ <ol id="breadcrumbs">
|
|
|
<li>
|
|
|
<a class="no-decoration" :href="homeUrl + '/'">
|
|
|
<span class="ot_green--text">{{$t('welcome')}}</span>
|
|
|
@@ -21,7 +21,6 @@
|
|
|
<script lang="ts">
|
|
|
import {defineComponent, computed, useContext, useRouter} from '@nuxtjs/composition-api'
|
|
|
import {AnyJson} from "~/types/interfaces";
|
|
|
- import * as _ from "lodash";
|
|
|
|
|
|
export default defineComponent({
|
|
|
setup() {
|
|
|
@@ -38,8 +37,7 @@
|
|
|
path = `${path}/${param}`
|
|
|
const match = $router.match(path)
|
|
|
if (match.name !== null) {
|
|
|
- const title = !parseInt(param, 10) ? i18n.t(param.replace(/-/g, ' ') + '_breadcrumbs') : i18n.t('item')
|
|
|
-
|
|
|
+ const title = !parseInt(param, 10) ? i18n.t(param + '_breadcrumbs') : i18n.t('item')
|
|
|
crumbs.push({
|
|
|
title: title,
|
|
|
...match,
|
|
|
@@ -49,7 +47,6 @@
|
|
|
return crumbs
|
|
|
})
|
|
|
|
|
|
-
|
|
|
return {
|
|
|
crumbs,
|
|
|
homeUrl
|