fix: 打開不同對話時, 使用了同一個 ChatFragment
* 並修復了使用 key 時, 因爲卸載組件后 ref 丟失導致的錯誤
This commit is contained in:
@@ -173,7 +173,8 @@ export default function App() {
|
||||
}
|
||||
{
|
||||
isShowChatFragment && <ChatFragment
|
||||
target={currentChatId} />
|
||||
target={currentChatId}
|
||||
key={currentChatId} />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user