feat: codemirror插件的请求禁止使用缓存

This commit is contained in:
539943419 committed 2024-09-02 23:13:27 +08:00
1 parent 0f6e817966
commit d16f11c263
1 file changed
+6 -1
+6 -1
View File
@@ -136,7 +136,12 @@ onMounted(async () => {
const fileName = currentFiles.value[0].name
codeData.value = (
await miaoFetchApi.getFile(currentFiles.value[0], {
axiosOption: { responseType: 'text' }
axiosOption: {
responseType: 'text',
headers: {
'Cache-Control': 'no-cache'
}
}
})
).toString()
bakData.value = codeData.value