前端需要先连接钱包, 由钱包来提供 PRC 连接和账号。
应该是类似这样:

this.provider = window.ethereum;
try {
await this.provider.request({method: 'eth_accounts'})
} catch (error) {
// console.log("User denied account access");
}
}
this.web3 = new Web3(this.provider);