From 7e6f83518b8fa18b9d2bad788236e4efa08388a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 12 Oct 2021 11:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0md5=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=A0=B7=E5=BC=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- src/main.js | 2 ++ src/views/home/notice.vue | 25 +++++++++++++++++++++++-- src/views/login.vue | 1 + 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c4fed59..f6e0809 100644 --- a/package.json +++ b/package.json @@ -47,18 +47,19 @@ "echarts": "4.2.1", "element-ui": "2.13.2", "file-saver": "2.0.1", - "js-beautify": "1.10.2", "fuse.js": "3.4.4", + "js-beautify": "1.10.2", "js-cookie": "2.2.0", + "js-md5": "^0.7.3", "jsencrypt": "3.0.0-rc.1", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", + "quill": "1.3.7", "screenfull": "4.2.0", "sortablejs": "1.8.4", "vue": "2.6.10", "vue-count-to": "1.0.13", - "quill": "1.3.7", "vue-cropper": "0.4.9", "vue-router": "3.0.2", "vue-splitpane": "1.0.4", diff --git a/src/main.js b/src/main.js index 7b4236e..e364cc7 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,7 @@ import Vue from 'vue'; import Cookies from 'js-cookie'; +import md5 from 'js-md5'; import 'normalize.css/normalize.css'; // a modern alternative to CSS resets @@ -39,6 +40,7 @@ Vue.prototype.selectDictLabels = selectDictLabels; Vue.prototype.download = download; Vue.prototype.handleTree = handleTree; Vue.prototype.formatRichText = formatRichText; +Vue.prototype.md5 = md5; Vue.prototype.msgSuccess = function(msg) { this.$message({ showClose: true, message: msg, type: 'success' }); diff --git a/src/views/home/notice.vue b/src/views/home/notice.vue index a9dabfe..b9fd74b 100644 --- a/src/views/home/notice.vue +++ b/src/views/home/notice.vue @@ -76,7 +76,28 @@ v-for="(item, index) in labelList" :key="item.id" > - {{ item.name }}: + + {{ item.name }}: + + + {{ item.name }}: + + + {{ item.name }}: + + {{ item.name }}: 不限 {