feat: codemirror插件的请求禁止使用缓存
This commit is contained in:
1 parent
0f6e817966
commit
d16f11c263
1 file changed
+6
-1
@@ -136,7 +136,12 @@ onMounted(async () => {
|
|||||||
const fileName = currentFiles.value[0].name
|
const fileName = currentFiles.value[0].name
|
||||||
codeData.value = (
|
codeData.value = (
|
||||||
await miaoFetchApi.getFile(currentFiles.value[0], {
|
await miaoFetchApi.getFile(currentFiles.value[0], {
|
||||||
axiosOption: { responseType: 'text' }
|
axiosOption: {
|
||||||
|
responseType: 'text',
|
||||||
|
headers: {
|
||||||
|
'Cache-Control': 'no-cache'
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
).toString()
|
).toString()
|
||||||
bakData.value = codeData.value
|
bakData.value = codeData.value
|
||||||
|
|||||||
Reference in new issue
Block a user