Skip to content

Commit

Permalink
modify pagetitle to show position in tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Oct 4, 2023
1 parent 40eec3a commit 1daa5e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ import axios from "axios";
//import Appfooter from "./components/appfooter.vue";
export default {
name: "App",
name: "Kubero",
/*
components: {
Appfooter
Expand Down Expand Up @@ -228,6 +228,7 @@ export default {
.get("/api/banner")
.then((result) => {
this.banner = result.data;
this.app.name = "oooo"
})
.catch((err) => {
console.log(err);
Expand Down
5 changes: 5 additions & 0 deletions client/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import vuetify from './plugins/vuetify';
import vueSocketIoExtended from './plugins/vue-socket-io-extended';
import router from './router';

router.beforeEach((to, from, next) => {
document.title = App.name + " - " + to.name;
next();
});

Vue.config.productionTip = false
Vue.use(VueRouter)

Expand Down

0 comments on commit 1daa5e9

Please sign in to comment.