闫增涛
2024-06-05 23ebc0d9ee7d4b06916478f84b411d0406f11a3a
src/books/lifeCare/view/chapter001.vue
@@ -1403,7 +1403,7 @@
</template>
<script>
import getResourcePath from "@/assets/methods/resources.js";
import { getResourcePath } from "@/assets/methods/resources.js";
import examinations from "@/components/examinations/index.vue";
export default {
@@ -1415,6 +1415,10 @@
    },
    questionData: {
      type: Object,
    },
    isSearch: {
      type: Boolean,
      default: false,
    },
  },
  data() {
@@ -1440,13 +1444,15 @@
    examinations,
  },
  async created() {
    const localData = JSON.parse(localStorage.getItem("chapter001"));
    if (localData) {
      this.chapter001 = { ...Object.assign(this.chapter001, localData) };
    if (!this.isSearch) {
      const localData = JSON.parse(localStorage.getItem("chapter001"));
      if (localData) {
        this.chapter001 = { ...Object.assign(this.chapter001, localData) };
      }
      this.chapter001.videOneUrl = await getResourcePath(
        "68ebd5c05bcb742999a9ebdce4b4bd53"
      );
    }
    this.chapter001.videOneUrl = getResourcePath(
      "68ebd5c05bcb742999a9ebdce4b4bd53"
    );
  },
  methods: {
    activityOne() {