@@ -413,7 +413,15 @@
getRemarks(){
getAction('/sys/dict/getByCodeDict', {table:'sys_dict',text:'description',code:'dict_code',key:'remarks'}).then((res) => {
var arr = res.split(' ')
- this.formState.demo = arr[0]+'\n'+arr[1]+'\n'+arr[2]+'\n'+arr[3]
+ var c = ''
+ arr.map((item,index)=>{
+ if(index !== arr.length-1){
+ c += item+'\n'
+ }else{
+ c+=item
+ }
+ })
+ this.formState.demo = c
})
},
// 计划员模糊查询