File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ export class Manager {
253253export class User extends Model {
254254 public id ! : number ;
255255 public username ! : string ;
256+ public nickname ! : string ;
256257 public admin ! : number ;
257258 public active ! : number ;
258259 public email ! : string ;
@@ -303,6 +304,7 @@ export class User extends Model {
303304 const origin = {
304305 id : this . id ,
305306 username : this . username ,
307+ nickname : this . nickname ,
306308 admin : this . admin ,
307309 active : this . active ,
308310 email : this . email ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export let UserInterface = {
5454 comment : '头像url' ,
5555 get ( ) {
5656 // @ts -ignore
57- return this . getDataValue ( 'avatar' ) ? config . getItem ( 'siteDomain' ) + 'assets/' + this . getDataValue ( 'avatar' ) : null ;
57+ return this . getDataValue ( 'avatar' ) ? config . getItem ( 'siteDomain' ) . replace ( / \/ + $ / , '' ) + '/ assets/' + this . getDataValue ( 'avatar' ) : null ;
5858 }
5959
6060 } ,
You can’t perform that action at this time.
0 commit comments