it didn't refresh , and I think it certianly should not work.
I think the code is not correct, and my questtion is :
at the begining , i dont kown its keys, when logout, i should set the 'user' to empty, if i still want watch the properties of user, and refresh the component , how should i rewrite the code?
I pulled wokmate's colde , the userInfo part is write like this
when he set the 'user', the code is like this
when remove the userInfo , the code is like this
now , my issue is this , if i just use this user.name. user.tel, ect. like this
it didn't refresh , and I think it certianly should not work.
I think the code is not correct, and my questtion is : at the begining , i dont kown its keys, when logout, i should set the 'user' to empty, if i still want watch the properties of user, and refresh the component , how should i rewrite the code?