diff --git a/package.json b/package.json index 17d7be40..f08b33a9 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "countup.js": "^1.9.3", "dayjs": "^1.6.7", "echarts": "^4.1.0", - "element-ui": "^2.4.4", + "element-ui": "^2.4.11", "flex.css": "^1.1.7", "fuse.js": "^3.2.1", "github-markdown-css": "^2.10.0", diff --git a/src/router/index.js b/src/router/index.js index cb588ddb..05536f7f 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -53,14 +53,11 @@ router.beforeEach((to, from, next) => { } }) -router.afterEach(to => { +router.afterEach((to) => { // 进度条 NProgress.done() - // 需要的信息 - const app = router.app - const { name, params, query, fullPath } = to // 多页控制 打开新的页面 - app.$store.dispatch('d2admin/page/open', { name, params, query, fullPath }) + store.dispatch('d2admin/page/open', to) // 更改标题 util.title(to.meta.title) }) diff --git a/src/store/modules/d2admin/modules/page.js.REMOVED.git-id b/src/store/modules/d2admin/modules/page.js.REMOVED.git-id index 6a2fbe52..49b142e9 100644 --- a/src/store/modules/d2admin/modules/page.js.REMOVED.git-id +++ b/src/store/modules/d2admin/modules/page.js.REMOVED.git-id @@ -1 +1 @@ -662a8892e61c7d979c416032c9a8ea91ebdc5e12 \ No newline at end of file +d4654c5862cfee5616a6cd51013c7ce2cdeeef46 \ No newline at end of file