MCPcopy Index your code
hub / github.com/dataease/SQLBot / clear

Function clear

frontend/src/stores/user.ts:204–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 this.platformInfo = info
203 },
204 clear() {
205 const keys: string[] = [
206 'token',
207 'uid',
208 'account',
209 'name',
210 'oid',
211 'language',
212 'exp',
213 'time',
214 'weight',
215 'origin',
216 'platformInfo',
217 ]
218 keys.forEach((key) => wsCache.delete('user.' + key))
219 this.$reset()
220 },
221 },
222})
223

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected