Skip to content

Commit

Permalink
Fix: 细节
Browse files Browse the repository at this point in the history
  • Loading branch information
Maorey committed Apr 22, 2020
1 parent b968248 commit 6ab3c98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/pages/index/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<template>
<body>
<form :class="$style.skin">
<a @click="$router.replace('/r' + $route.fullPath)">刷新</a>
<input
v-for="val in SKIN"
:key="val"
Expand Down Expand Up @@ -41,7 +42,7 @@
:class="$style.nav"
@mouseleave="showNav = false"
>
<routerLink
<RouterLink
v-for="item in LINK"
:key="item.name"
:to="item.to"
Expand All @@ -51,7 +52,7 @@
:alt="item.name"
>
<h4>{{ item.name }}</h4>
</routerLink>
</RouterLink>
</div>
</Transition>
</body>
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ router.beforeEach((to, from, next) => {
NProgress.start() // 开始进度条
cancel('导航: 取消未完成请求')
// 关闭所有提示
temp = router.app
temp.$message.closeAll()
temp.$notify.closeAll()
try {
temp.$msgbox.close()
} catch (error) {}
// temp = router.app
// temp.$message.closeAll()
// temp.$notify.closeAll()
// try {
// temp.$msgbox.close()
// } catch (error) {}
// if ((temp = temp.$el) && (temp = temp.querySelector('.el-main'))) {
// // 记录离开前的滚动位置
// from.meta.x = temp.scrollLeft
Expand Down

0 comments on commit 6ab3c98

Please sign in to comment.