File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
ui/src/views/dataset/component Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 101101 </el-checkbox >
102102 </div >
103103 <div class =" text-right mt-8" >
104- <el-button @click =" splitDocument" > {{ $t('views.document.buttons.preview') }}</el-button >
104+ <el-button @click =" splitDocument" >
105+ {{ $t('views.document.buttons.preview') }}</el-button
106+ >
105107 </div >
106108 </div >
107109 </el-col >
@@ -147,19 +149,19 @@ const form = reactive<{
147149
148150function changeHandle(val : boolean ) {
149151 if (val && firstChecked .value ) {
150- const list = paragraphList .value
151- list .map ((item : any ) => {
152- item .content .map ((v : any ) => {
153- v [' problem_list' ] = v .title .trim ()
152+ paragraphList .value = paragraphList .value .map ((item : any ) => ({
153+ ... item ,
154+ content: item .content .map ((v : any ) => ({
155+ ... v ,
156+ problem_list: v .title .trim ()
154157 ? [
155158 {
156159 content: v .title .trim ()
157160 }
158161 ]
159162 : []
160- })
161- })
162- paragraphList .value = list
163+ }))
164+ }))
163165 firstChecked .value = false
164166 }
165167}
You can’t perform that action at this time.
0 commit comments