diff --git a/index.html b/index.html index 94d37f6..26d14dc 100644 --- a/index.html +++ b/index.html @@ -91,6 +91,7 @@ --confirmFontSize: 0.8rem; --confirmBg: rgba(0, 0, 0, 0.15); + --confirmBtnColor: #000000cc; } body { diff --git a/src/App.vue b/src/App.vue index 4688d9e..c735b4f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,8 +16,6 @@ - - @@ -25,7 +23,7 @@ import { ref, watch, computed, onMounted } from 'vue' import { useRoute } from 'vue-router' import '@/common/base.css' -import Modal from '@/components/Modal.vue' +import { initModalService } from '@/utils/modalService' // 导入页面组件 import NoteListPage from './pages/NoteListPage.vue' @@ -73,6 +71,11 @@ watch( } } ) + +// 初始化弹框服务 +onMounted(() => { + initModalService() +}) diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 5ee95b8..13fcb10 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -1,18 +1,21 @@