fix: form-create API 请求时,缺少 token (https://t.zsxq.com/hK3FO)

This commit is contained in:
YunaiV 2025-07-06 16:45:17 +08:00
parent cfa25fc8d0
commit 0efa1e986b

View File

@ -116,7 +116,8 @@ export const setConfAndFields2 = (
switch (key) {
case 'beforeFetch':
return (config: any) => {
// 添加认证头
// 添加 Token 认证头。例如说:
// https://t.zsxq.com/hK3FO
const token = localStorage.getItem('token')
if (token) {
config.headers = {