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
2025-01-02 11:28:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
067a6680d8d325d44048d79ccb07b8fc63d1ab68
067a6680
1 parent
b2fc0acc
fix 解决方案banner取值字段优化
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/views/solution/detail.vue
src/views/solution/detail_test.vue
src/views/solution/detail.vue
View file @
067a668
<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-12-14 11:01:49
* @LastEditTime: 202
5-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'];
...
...
src/views/solution/detail_test.vue
View file @
067a668
<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-12-27 17:58:12
* @LastEditTime: 202
5-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;
...
...
Please
register
or
login
to post a comment