From d16f11c263f53a5dc82e8dec7121a67eec73f309 Mon Sep 17 00:00:00 2001 From: Miao_Spring <539943419@qq.com> Date: Mon, 2 Sep 2024 23:13:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20codemirror=E6=8F=92=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=A6=81=E6=AD=A2=E4=BD=BF=E7=94=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/miaoCodeMirror.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/miaoCodeMirror.vue b/src/views/miaoCodeMirror.vue index 5fefd72..60f9325 100644 --- a/src/views/miaoCodeMirror.vue +++ b/src/views/miaoCodeMirror.vue @@ -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