|
|
@@ -45,6 +45,11 @@ export default {
|
|
|
]);
|
|
|
function changeTab(item) {
|
|
|
store.commit("changeTab", item.tabText);
|
|
|
+ if (item.path) {
|
|
|
+ router.push(item.path);
|
|
|
+ } else {
|
|
|
+ router.push("/transportationSafetyCenter");
|
|
|
+ }
|
|
|
}
|
|
|
async function logOut() {
|
|
|
let res = await store.dispatch("LogOut");
|