()
| 203 | } |
| 204 | |
| 205 | removeToken() { |
| 206 | const cache = readCache(); |
| 207 | if (cache[this.cacheKey]) { |
| 208 | delete cache[this.cacheKey].token; |
| 209 | writeCache(cache); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | async getWxCode() { |
| 214 | if (!this.openid) throw new Error("缺少 openid,无法自动登录"); |
no test coverage detected