If you do it yourself, you can do it at either party's domicile. You can all go to Beijing for formalities.
If there are differences on some issues and litigation is needed, it depends on which side of you plays the role of plaintiff. If you are the plaintiff, you should go to the place where your wife has lived 1 year, of course, to the court. Your wife ran around and had no place to live for a year, so she transferred to the local court where you lived for a year. If you are also running around and have no stable residence, go to the local court where your wife often lives. If your wife stays in every city on average, it's up to you. Do you have a regular place to live? Yes, do it in your place, or if you don't ... well, it will be accepted by the International Court of Justice in The Hague. . . . . . .