I have searched for something to resolve a problem that has shown up here: How do I get \chaptername to appear in the table of contents?
I have tried the code from that thread. But I got an issue, that is, it adds the \chaptername
even for appendix chapters:
Chapter 1. aaaaa
....
Chapter Appendix A
How can I resolve it?