Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-04 11:01:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec973d5627105d40f749b010ed8d3adae454d982
ec973d56
1 parent
bb7f3893
fix 移除错误代码
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
src/components/ShortcutFixed/index.vue
src/components/ShortcutFixed/index.vue
View file @
ec973d5
<!--
* @Date: 2022-05-11 11:19:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-0
3 15:07:53
* @LastEditTime: 2024-12-0
4 11:00:52
* @FilePath: /tswj/src/components/ShortcutFixed/index.vue
* @Description: 文件描述
-->
...
...
@@ -47,25 +47,20 @@ import { icon_me, icon_home, icon_rank, icon_contact, icon_search } from '@/util
import { useRoute, useRouter } from 'vue-router'
import { killPages, store } from '@/hooks/useKeepAlive';
// 删除所有的 keep-alive 缓存
killPages();
// 清空记录位置
store.changeScrollTop(0);
const $route = useRoute();
const $router = useRouter();
const toSearch = () => {
// 清空记录位置
store.changeScrollTop(0);
$router.push({
path: '/client/searchPage',
query: {
book_id: $route.query.id,
kg_id: $route.query.kg_id
}
});
// 清空记录位置
store.changeScrollTop(0);
$router.push({
path: '/client/searchPage',
query: {
book_id: $route.query.id,
kg_id: $route.query.kg_id
}
});
}
</script>
<script>
...
...
Please
register
or
login
to post a comment