-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0b186a
commit 7327142
Showing
3 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<b-breadcrumb :items="breadcrumbs"></b-breadcrumb> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
computed: { | ||
breadcrumbs() { | ||
// console.log(this.$route); | ||
const here = this.$route.path.split('/').slice(1); | ||
const parts = [{ text: 'Home', to: '/' }]; | ||
for (let i = 0; i < here.length; i++) { | ||
const part = here[i]; | ||
const text = | ||
part.charAt(0).toUpperCase() + part.substr(1).toLowerCase(); | ||
const to = '/' + here.slice(0, i + 1).join('/'); | ||
parts.push({ text, to }); | ||
} | ||
return parts; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7327142
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: