feat(sj_1.0.0): 接入snail-job
This commit is contained in:
parent
e558ef9ce2
commit
ef3d26dd08
@ -1,5 +1,5 @@
|
||||
# backend service base url, test environment
|
||||
VITE_SERVICE_BASE_URL=http://preview.easyretry.com/easy-retry
|
||||
VITE_SERVICE_BASE_URL=http://localhost:8080/snail-job
|
||||
|
||||
# other backend service base url, test environment
|
||||
VITE_OTHER_SERVICE_BASE_URL= `{
|
||||
|
@ -31,9 +31,9 @@ export const request = createFlatRequest<App.Service.Response, InstanceState>(
|
||||
const token = localStg.get('token');
|
||||
const namespaceId = localStg.get('namespaceId');
|
||||
// const Authorization = token ? `Bearer ${token}` : null;
|
||||
headers['EASY-RETRY-AUTH'] = token;
|
||||
headers['EASY-RETRY-NAMESPACE-ID'] = namespaceId;
|
||||
Object.assign(headers, { 'EASY-RETRY-AUTH': token, 'EASY-RETRY-NAMESPACE-ID': namespaceId });
|
||||
headers['SNAIL-JOB-AUTH'] = token;
|
||||
headers['SNAIL-JOB-NAMESPACE-ID'] = namespaceId;
|
||||
Object.assign(headers, { 'SNAIL-JOB-AUTH': token, 'SNAIL-JOB-NAMESPACE-ID': namespaceId });
|
||||
|
||||
return config;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user