|
@@ -47,8 +47,6 @@ Vue.mixin(mixins);
|
|
|
// locale.use(localStorage.getItem('i18n')!='zh' ? langEN:langZH )
|
|
|
locale.i18n((key, value) => i18n.t(key, value))
|
|
|
|
|
|
-import{endCalc,optionTimeCalc,init}from'@/utils/TimeOnPage.js';
|
|
|
-
|
|
|
|
|
|
import setting from '@/mixins/theme.js'
|
|
|
Vue.prototype.$setting = setting;
|
|
@@ -262,7 +260,6 @@ router.afterEach((to, from, next) => {
|
|
|
|
|
|
if(!stores.state.hasDoPageListening){
|
|
|
// 初始化需要放在 页面设置标题后,才能拿到正确的标题
|
|
|
- init()
|
|
|
stores.mutations.SET_PAGE_EVENT_LISTENER(stores.state,true)
|
|
|
}
|
|
|
|
|
@@ -270,9 +267,7 @@ router.afterEach((to, from, next) => {
|
|
|
if(routerChangeType==='popstate'){
|
|
|
const IsActive = sessionStorage.getItem('IsActive')
|
|
|
if(IsActive=='1'){
|
|
|
- endCalc('popstate',Number(sessionStorage.getItem('popStayTime')||0))
|
|
|
}
|
|
|
- optionTimeCalc()
|
|
|
sessionStorage.removeItem('routerChangeType')
|
|
|
sessionStorage.removeItem('popStayTime')
|
|
|
}
|