i18n, vue-router and vuex upgrade
1. Configuration of i18n legacy as false.
2. Translation function t is called using the useI18n.
3. Used the i18n.global.t() function from i18n instead of this.$t()
4. Event bus error that occurred during logout.
5. Implemented vue-router 4.4.0 and vuex upgrade to 4.1.0
Change-Id: I9464d82c76dcc1445ce271983ea3ab9d7b03d265
Signed-off-by: Surya Venkatesan <suryav@ami.com>
diff --git a/src/router/index.js b/src/router/index.js
index 4e962fe..22a3a8c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,5 +1,4 @@
-import Vue from 'vue';
-import VueRouter from 'vue-router';
+import { createRouter, createWebHistory } from 'vue-router';
//Do not change store or routes import.
//Exact match alias set to support
@@ -7,9 +6,8 @@
import store from '../store';
import routes from './routes';
-Vue.use(VueRouter);
-const router = new VueRouter({
- base: process.env.BASE_URL,
+const router = createRouter({
+ history: createWebHistory(process.env.BASE_URL),
routes,
linkExactActiveClass: 'nav-link--current',
scrollBehavior() {