bug
This commit is contained in:
		@@ -123,7 +123,13 @@ export default {
 | 
			
		||||
        .then((res) => {
 | 
			
		||||
          if (res?.data) {
 | 
			
		||||
            res.data.records.forEach((e) => {
 | 
			
		||||
              e.avatar = e.createUserName?.substring(0, 2) || '游客'
 | 
			
		||||
              // e.avatar = e.createUserName?.substring(0, 2) || '游客'
 | 
			
		||||
              if(e.createUserName) {
 | 
			
		||||
                e.avatar =  e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2) 
 | 
			
		||||
              }else {
 | 
			
		||||
                e.avatar =  '游客'
 | 
			
		||||
              }
 | 
			
		||||
              
 | 
			
		||||
              if (e.images) {
 | 
			
		||||
                e.images = JSON.parse(e.images)
 | 
			
		||||
              }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user