hookehuyr

fix 路径跳转优化

1 <!-- 1 <!--
2 * @Date: 2024-10-20 16:57:48 2 * @Date: 2024-10-20 16:57:48
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-12 14:54:04 4 + * @LastEditTime: 2024-12-12 17:35:03
5 * @FilePath: /hager/src/views/search.vue 5 * @FilePath: /hager/src/views/search.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
258 }, 258 },
259 goToSuccess (v) { // 跳转成功案例 259 goToSuccess (v) { // 跳转成功案例
260 this.$router.push({ 260 this.$router.push({
261 - path: `/solution/case/${v}}`, 261 + path: `/solution/case/${v}`,
262 }); 262 });
263 } 263 }
264 } 264 }
......
1 <!-- 1 <!--
2 * @Date: 2024-10-18 12:06:09 2 * @Date: 2024-10-18 12:06:09
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-12 16:05:29 4 + * @LastEditTime: 2024-12-12 17:37:23
5 * @FilePath: /hager/src/views/solution/case.vue 5 * @FilePath: /hager/src/views/solution/case.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -153,11 +153,12 @@ export default { ...@@ -153,11 +153,12 @@ export default {
153 case_img: [], 153 case_img: [],
154 keyword: '', 154 keyword: '',
155 description: '', 155 description: '',
156 + current_index: this.$route.params.current_index || 0
156 } 157 }
157 }, 158 },
158 computed: { 159 computed: {
159 casePath () { 160 casePath () {
160 - return `/solution/detail/${this.success_info.category_id}/${this.$route.params.current_index}/${Date.now()}`; 161 + return `/solution/detail/${this.success_info.category_id}/${this.current_index}/${Date.now()}`;
161 } 162 }
162 }, 163 },
163 watch: { 164 watch: {
......