Fix: json cache 비활성화
This commit is contained in:
parent
ae933d7253
commit
1a859433e0
@ -2,5 +2,11 @@ import { LabelJson } from '@/types';
|
||||
import axios from 'axios';
|
||||
|
||||
export async function getLabelJson(jsonPath: string) {
|
||||
return axios.get<LabelJson>(jsonPath).then(({ data }) => data);
|
||||
return axios
|
||||
.get<LabelJson>(jsonPath, {
|
||||
headers: {
|
||||
'Cache-Control': 'no-cache',
|
||||
},
|
||||
})
|
||||
.then(({ data }) => data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user