Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
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-12 17:39:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
19cc5301f3e0f393d555d865252947db0bf61597
19cc5301
1 parent
f44f8910
fix 路径跳转优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/views/search.vue
src/views/solution/case.vue
src/views/search.vue
View file @
19cc530
<!--
* @Date: 2024-10-20 16:57:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-12 1
4:54:04
* @LastEditTime: 2024-12-12 1
7:35:03
* @FilePath: /hager/src/views/search.vue
* @Description: 文件描述
-->
...
...
@@ -258,7 +258,7 @@ export default {
},
goToSuccess (v) { // 跳转成功案例
this.$router.push({
path: `/solution/case/${v}
}
`,
path: `/solution/case/${v}`,
});
}
}
...
...
src/views/solution/case.vue
View file @
19cc530
<!--
* @Date: 2024-10-18 12:06:09
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-12 1
6:05:29
* @LastEditTime: 2024-12-12 1
7:37:23
* @FilePath: /hager/src/views/solution/case.vue
* @Description: 文件描述
-->
...
...
@@ -153,11 +153,12 @@ export default {
case_img: [],
keyword: '',
description: '',
current_index: this.$route.params.current_index || 0
}
},
computed: {
casePath () {
return `/solution/detail/${this.success_info.category_id}/${this.
$route.params.
current_index}/${Date.now()}`;
return `/solution/detail/${this.success_info.category_id}/${this.current_index}/${Date.now()}`;
}
},
watch: {
...
...
Please
register
or
login
to post a comment