hookehuyr

fix 解决方案banner取值字段优化

1 <!-- 1 <!--
2 * @Date: 2024-09-29 15:49:27 2 * @Date: 2024-09-29 15:49:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-14 11:01:49 4 + * @LastEditTime: 2025-01-02 11:25:24
5 * @FilePath: /hager/src/views/solution/detail.vue 5 * @FilePath: /hager/src/views/solution/detail.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
227 const { code, data } = await getSolutionCaseAPI({ cid: this.$route.params.id }); 227 const { code, data } = await getSolutionCaseAPI({ cid: this.$route.params.id });
228 if (code) { 228 if (code) {
229 this.case_info = data; 229 this.case_info = data;
230 - this.case_banner = data.file?.banner ? data.file?.banner[0] : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png'; 230 + this.case_banner = data.file?.banner ? data.file?.banner[0].value : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png';
231 this.case_list = data.list; 231 this.case_list = data.list;
232 this.current_index = this.$route.params.current_index ? +this.$route.params.current_index : 0; 232 this.current_index = this.$route.params.current_index ? +this.$route.params.current_index : 0;
233 this.current_id = this.case_list[this.current_index]['id']; 233 this.current_id = this.case_list[this.current_index]['id'];
......
1 <!-- 1 <!--
2 * @Date: 2024-09-29 15:49:27 2 * @Date: 2024-09-29 15:49:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-12-27 17:58:12 4 + * @LastEditTime: 2025-01-02 11:25:39
5 * @FilePath: /hager/src/views/solution/detail_test.vue 5 * @FilePath: /hager/src/views/solution/detail_test.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
207 const { code, data } = await getSolutionCaseAPI({ cid: this.$route.params.id }); 207 const { code, data } = await getSolutionCaseAPI({ cid: this.$route.params.id });
208 if (code) { 208 if (code) {
209 this.case_info = data; 209 this.case_info = data;
210 - this.case_banner = data.file?.banner ? data.file?.banner[0] : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png'; 210 + this.case_banner = data.file?.banner ? data.file?.banner[0].value : 'https://cdn.ipadbiz.cn/hager/banner/banner08.png';
211 this.case_list = data.list; 211 this.case_list = data.list;
212 this.category_description = data.category_description; 212 this.category_description = data.category_description;
213 this.current_index = this.$route.params.current_index ? +this.$route.params.current_index : 0; 213 this.current_index = this.$route.params.current_index ? +this.$route.params.current_index : 0;
......