Skip to content

Commit 7c85adf

Browse files
yyyCodeclaude
andcommitted
style(frontend): attachToken 超时异常文案由 fingerprint 泛化(评审 nit)
- withTimeout 现被指纹与令牌两条路径共用,错误文案不再特指指纹 Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 9305af5 commit 7c85adf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vue/src/api/http.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function attachToken(headers) {
3434

3535
function withTimeout(promise, ms) {
3636
return new Promise((resolve, reject) => {
37-
const timer = setTimeout(() => reject(new Error('fingerprint timeout')), ms)
37+
const timer = setTimeout(() => reject(new Error('header attach timeout')), ms)
3838
promise.then(
3939
(v) => { clearTimeout(timer); resolve(v) },
4040
(e) => { clearTimeout(timer); reject(e) }

0 commit comments

Comments
 (0)