mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 00:12:43 +08:00
fix: form-create API 请求时,缺少 token (https://t.zsxq.com/hK3FO)
This commit is contained in:
parent
cfa25fc8d0
commit
0efa1e986b
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user