Skip to content

Commit

Permalink
#8
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNegativeTW committed Nov 22, 2020
1 parent bf7a869 commit 13259d1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/layout/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
width="40"
/>
</div>
<v-toolbar-title>看路</v-toolbar-title>
<v-toolbar-title>{{ toolbarTitle }}</v-toolbar-title>
<v-spacer />

<v-dialog v-model="dialog" width="500">
Expand Down Expand Up @@ -186,7 +186,22 @@ export default {
displayName: '',
email: '',
}),
computed: {
toolbarTitle() {
switch (this.$route.path) {
case "/roadselect":
return "看路"
case "/roadevent":
return "路況"
case "/weather":
return "天氣"
case "/livecam":
return "即時影像"
default:
return ""
}
},
},
beforeCreate: function () {
firebase.auth().onAuthStateChanged((user) => {
Expand Down

0 comments on commit 13259d1

Please sign in to comment.