From b11d7de9cee8629efe5328d49926040d55b5816a Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 02 八月 2024 11:35:22 +0800 Subject: [PATCH] 第八章 --- src/books/sportsAndHealth/view/components/chapter005.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/books/sportsAndHealth/view/components/chapter005.vue b/src/books/sportsAndHealth/view/components/chapter005.vue index a43ee17..e8976bc 100644 --- a/src/books/sportsAndHealth/view/components/chapter005.vue +++ b/src/books/sportsAndHealth/view/components/chapter005.vue @@ -4161,6 +4161,11 @@ } }, created() { + + const localData = JSON.parse(localStorage.getItem('chapter005')) + if (localData) { + this.chapter005 = { ...Object.assign(this.chapter005, localData) } + } if (!this.isSearch) { this.getVideo(this.chapter005.videoMd5.v1.md5, 'v1') this.getVideo(this.chapter005.videoMd5.v2.md5, 'v2') -- Gitblit v1.9.1