Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-05-15 16:28:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2351ac0b2d3d2ad337bcd092dbbdd13ee775a362
2351ac0b
1 parent
6360089d
fix: 17150 debug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card6Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card6Component.ets
View file @
2351ac0
...
...
@@ -31,11 +31,11 @@ export struct Card6Component {
}
titleInit() {
if (this.contentDTO.title
.includes('<em>') && this.contentDTO.title
.includes('</em>')) {
if (this.contentDTO.title
?.includes('<em>') && this.contentDTO.title?
.includes('</em>')) {
this.titleMarked = true;
this.str01 = this.contentDTO.newsTitle?.split('<em>')[0] || '';
this.str02 = this.contentDTO.newsTitle?.split('<em>')[1].split('</em>')[0] || '';
this.str03 = this.contentDTO.newsTitle?.split('<em>')[1].split('</em>')[1] || '';
this.str01 = this.contentDTO.title?.split('<em>')[0] || '';
this.str02 = this.contentDTO.title?.split('<em>')[1].split('</em>')[0] || '';
this.str03 = this.contentDTO.title?.split('<em>')[1].split('</em>')[1] || '';
}
}
...
...
Please
register
or
login
to post a comment