Who knows the pitfalls shared by Wechat in vue history mode?

when the vue route mode is history mode, the links and covers shared by Wechat authorization are failed, does anyone know?
as shown in figure

clipboard.png

May.05,2022

this is a long-lasting pit, so I can't climb out.
the temporary solution is to refresh the pages that need to be shared again, and then call Wechat SDK. Add the query parameter needrefresh=1 to the url of the page to be shared, then determine whether to refresh the page according to the needrefresh parameter, and remove the needrefresh parameter when refreshing.

Menu