cuiyalong 6 mēneši atpakaļ
vecāks
revīzija
27f1bb2cfd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -66,7 +66,7 @@ const tempHist: any = history.getItem('count')
 let historyCount: any = (tempHist * 1) || 0
 history.setItem('/', String(0))
 
-myRouter.beforeEach((to, from, next) => {
+myRouter.beforeEach((to: any, from, next) => {
   // 设置页面标题
   document.title = to.meta.title
   store.commit('updatePageTitle', to.meta.title)