I wanted to watch URL query changes with watch in Nuxt3, so I wrote the following code, but the watch did not work when the URL query changed.

<cwsoa/cntr}srscocithucrp(t=oitre>npo,stlu{o>atlneeg.==l"otugss("erRosoueuttteue[p('>)query'])

So I referenced the following article.

https://qiita.com/YumaInaura/items/9c86ed91d56402e816db

By changing the code to the following, the watch worked in response to URL query changes.

<cwsoa/cnt}srsccithcrp(==oitr>>npostlur{o>atolneuegt.==el".otuqgssu("eerRrosoyueu,ttteue[p('>)query'])

There are still many things I don’t fully understand, but I hope this is helpful to others.