From 4e974b7b54f3ee0561a7291e6fd60e4a4491c6de Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期二, 28 五月 2024 16:39:35 +0800 Subject: [PATCH] 增加流程图 --- src/books/lifeCare/index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/books/lifeCare/index.vue b/src/books/lifeCare/index.vue index 003e382..abbdfa4 100644 --- a/src/books/lifeCare/index.vue +++ b/src/books/lifeCare/index.vue @@ -1,3 +1,4 @@ +<!-- eslint-disable vue/multi-word-component-names --> <template> <div class="page-main" @scroll="throttledScrollHandler"> <div @@ -52,7 +53,6 @@ import chapter017 from "./view/chapter017"; import chapter018 from "./view/chapter018"; import NoteIcon from "@/assets/images/biji.png"; -import drawflow from "@/components/drawflow"; import _ from "lodash"; export default { data() { @@ -68,6 +68,7 @@ }, watch: { showCatalogList: { + // eslint-disable-next-line no-unused-vars handler(newVal, oldVal) { if ( this.$store.state.qiankun && @@ -78,7 +79,6 @@ showCatalogList: newVal, }); } - // 鍚姩椤电爜瑙傚療 setTimeout(() => { this.initObservation(); @@ -89,7 +89,7 @@ }, mounted() { // 榛樿鍔犺浇绔犺妭 - this.showCatalogList = [5]; + this.showCatalogList = [4]; // 婊氬姩鐩戝惉鑺傛祦 this.throttledScrollHandler = _.throttle( this.scrollFun, @@ -148,7 +148,6 @@ // }, 3000); }, components: { - drawflow, front001, ChapterOne, ChapterTwo, @@ -192,6 +191,7 @@ ).getSelection(); const txt = selection.toString(); if (selection.type != "none" && txt) { + // eslint-disable-next-line no-unused-vars let node = selection.anchorNode.parentNode; let pageHtml = this.getParentWithClass( selection.anchorNode, @@ -461,6 +461,7 @@ } }); }, + // eslint-disable-next-line getParentWithClass(element, className) { while (element.parentElement) { element = element.parentElement; @@ -469,6 +470,7 @@ } } }, + // eslint-disable-next-line no-unused-vars pageChangeCallback(entries, observer) { //entries锛氫唬琛ㄨ瀵熷埌鐨勭洰鏍囧厓绱犵殑闆嗗悎銆� observer锛氫唬琛ㄨ瀵熻�呭璞°�� entries.forEach((entry) => { @@ -495,7 +497,7 @@ } }); }, - }, + } }; </script> -- Gitblit v1.9.1