The page numbers of the thesis directories are all 1.
It should be that you set the page number on the previous page of thanks, and then recalculate the page number on the page of thanks. You can place the cursor on the contents of the thank-you page, click Insert, Page Number, Format, Page Number Arrangement, select Continue to the previous section, and then try to update the table of contents.