From d1c492986a1d57c366295f30de836ce2802b8cdd Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Tue, 28 Jul 2020 17:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E9=98=85=E8=AF=BB=E8=AE=BA=E6=96=87?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=BD=93=E5=89=8D=E6=BB=9A=E5=8A=A8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E5=8F=8A=E6=9F=A5=E6=89=BE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.js | 6 +- package.json | 3 +- pages/index/read.vue | 381 +++++++++++++++++++++++++------------------ plugins/uuid.js | 4 + store/read.js | 8 + yarn.lock | 18 ++ 6 files changed, 262 insertions(+), 158 deletions(-) create mode 100644 plugins/uuid.js diff --git a/nuxt.config.js b/nuxt.config.js index 8a37b93..b9d1ce3 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -37,7 +37,7 @@ export default { ** Plugins to load before mounting the App ** https://nuxtjs.org/guide/plugins */ - plugins: ['@/plugins/element-ui','@/plugins/vue-cookies','@/plugins/global','@/plugins/moment','@/plugins/contextmenu'], + plugins: ['@/plugins/element-ui','@/plugins/vue-cookies','@/plugins/global','@/plugins/moment','@/plugins/contextmenu','@/plugins/uuid'], /* ** Auto import components ** See https://nuxtjs.org/api/configuration-components @@ -193,9 +193,10 @@ export default { "add_tip_fail": "笔记添加失败", "add_tip_ok": "笔记添加成功", "auto_save": "失去焦点自动保存", - "click_note_list": "选中内容定位笔记", + "click_note_list": "单击卡片定位笔记", "contextmenu_err": "请选中文本进行操作", "del_confirm": "确认删除此笔记?", + "note_zero": "还没有任何笔记,尝试正文选中文本右击添加一个笔记吧!", "rating_1": "本文对您的科研工作是否有帮助", "rating_2": "本文的内容是否科学严谨", "rating_3": "您对本文的推荐程度", @@ -340,6 +341,7 @@ export default { "click_note_list": "", "contextmenu_err": "", "del_confirm": "", + "note_zero": "", "rating_1": "", "rating_2": "", "rating_3": "", diff --git a/package.json b/package.json index 6e3b83c..1f726bc 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "nuxt-i18n": "^6.13.1", "v-contextmenu": "^2.9.0", "vue-cookies": "^1.7.2", - "vue-runtime-helpers": "^1.1.2" + "vue-runtime-helpers": "^1.1.2", + "vue-uuid": "^2.0.2" }, "devDependencies": { "@nuxt/typescript-build": "^1.0.3", diff --git a/pages/index/read.vue b/pages/index/read.vue index 3998d29..6454029 100644 --- a/pages/index/read.vue +++ b/pages/index/read.vue @@ -1,5 +1,5 @@