From 8c7182c0aab508a3312925e191c963766eae105f Mon Sep 17 00:00:00 2001 From: steven <844541199@qq.com> Date: Tue, 29 Nov 2022 18:49:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=AD=E7=82=B9=E7=BB=AD=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Answer/components/js/questions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Answer/components/js/questions.js b/src/views/Answer/components/js/questions.js index 8bf85322..d86d1872 100644 --- a/src/views/Answer/components/js/questions.js +++ b/src/views/Answer/components/js/questions.js @@ -353,9 +353,9 @@ export default defineComponent({ questionsData.value.action = data.action; callback(data.jump_to); // 写入关联选项缓存 - if (props.isAnswer) { + if (props.isAnswer && questionsData.value.survey.is_breakpoint) { if (data.action.code === 20010) { - const questionsCache = JSON.parse(localStorage.getItem(questionsCache)) || {}; + const questionsCache = JSON.parse(localStorage.getItem("questionsCache")) || {}; questionsCache[proxy.$route.query.sn] = questionsData.value.questions; localStorage.setItem("questionsCache", JSON.stringify(questionsCache)); } else {