From 71b8585444e008017acdc7eab692ac7febfeaf62 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:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0md5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++-- src/main.js | 2 ++ src/views/login.vue | 4 ++-- 3 files changed, 7 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 7999f8b..1a117ec 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 @@ -45,6 +46,7 @@ Vue.prototype.download = download; Vue.prototype.handleTree = handleTree; Vue.prototype.formatRichText = formatRichText; Vue.prototype.stripscript = stripscript; +Vue.prototype.md5 = md5; Vue.prototype.msgSuccess = function(msg) { this.$message({ showClose: true, message: msg, type: 'success' }); diff --git a/src/views/login.vue b/src/views/login.vue index 624429e..6a3d408 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -70,11 +70,10 @@ - - +