()
| 149 | } |
| 150 | |
| 151 | removeToken() { |
| 152 | const cache = readCache(); |
| 153 | if (cache[this.cacheKey]) { |
| 154 | delete cache[this.cacheKey].token; |
| 155 | writeCache(cache); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | async getWxCode() { |
| 160 | if (!this.openid) throw new Error("缺少 openid,无法自动登录"); |
no test coverage detected