mirror of
https://github.com/rustfs/console.git
synced 2026-09-19 01:47:44 +08:00
feat : accesskey 使用console api接入
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
baseURL: '/api',
|
||||
onRequest({ request, options }) {
|
||||
if (token) {
|
||||
options.headers.set('Authorization', `Bearer ${token}`)
|
||||
// options.headers.set('Authorization', `Bearer ${token}`)
|
||||
}
|
||||
},
|
||||
onResponse({ response }) {
|
||||
|
||||
Reference in New Issue
Block a user