feat(sj_1.0.0): 接入snail-job

This commit is contained in:
byteblogs168 2024-04-16 22:54:19 +08:00
parent e558ef9ce2
commit ef3d26dd08
2 changed files with 4 additions and 4 deletions

View File

@ -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= `{

View File

@ -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;
},