hookehuyr

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

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