mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-04 17:43:09 +08:00
登录相关配置
This commit is contained in:
@@ -15,9 +15,9 @@ const requestHooks: RequestHooks = {
|
||||
if (baseUrl) {
|
||||
options.url = `${baseUrl}${options.url}`
|
||||
}
|
||||
const token = getToken()
|
||||
// 添加token
|
||||
if (withToken) {
|
||||
const token = getToken()
|
||||
if (withToken && token) {
|
||||
options.header.token = token
|
||||
}
|
||||
return options
|
||||
|
||||
Reference in New Issue
Block a user