Commit 54d55e51 authored by 郑磊's avatar 郑磊

1

parent e41bbd7a
......@@ -131,7 +131,9 @@ export async function api<TData = void>(options: ApiOptions): Promise<ApiResp<TD
//向请求头中注入token
let tokenValue = ''
if (typeof tokenValue !== 'string') {
if (typeof token === 'string') {
tokenValue = token
} else {
tokenValue = app_token
}
if (tokenValue) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment