change back-end to node js

This commit is contained in:
Amir Mohamadi
2020-11-14 12:37:59 +03:30
parent d23635b165
commit 56b295b75d
220 changed files with 13704 additions and 30781 deletions
+17
View File
@@ -0,0 +1,17 @@
export default function (ctx) {
if (ctx.app.store.state.global.navigation_guard) {
ctx.app.store.commit('global/navigationGuards', false)
/////////////////////////////////// beforeEach
////////////////////////////////// afterEach
ctx.app.router.afterEach((to, from) => {
if (to.params.lang === 'fa') {
$('html').attr({lang: 'fa'})
} else if (to.params.lang === 'en') {
$('html').attr({lang: 'en'})
}
})
}
}