hookehuyr

fix 路径跳转优化

<!--
* @Date: 2024-10-20 16:57:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-12 14:54:04
* @LastEditTime: 2024-12-12 17: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}`,
});
}
}
......
<!--
* @Date: 2024-10-18 12:06:09
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-12 16:05:29
* @LastEditTime: 2024-12-12 17: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: {
......