添加md5
This commit is contained in:
@ -47,18 +47,19 @@
|
|||||||
"echarts": "4.2.1",
|
"echarts": "4.2.1",
|
||||||
"element-ui": "2.13.2",
|
"element-ui": "2.13.2",
|
||||||
"file-saver": "2.0.1",
|
"file-saver": "2.0.1",
|
||||||
"js-beautify": "1.10.2",
|
|
||||||
"fuse.js": "3.4.4",
|
"fuse.js": "3.4.4",
|
||||||
|
"js-beautify": "1.10.2",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
|
"js-md5": "^0.7.3",
|
||||||
"jsencrypt": "3.0.0-rc.1",
|
"jsencrypt": "3.0.0-rc.1",
|
||||||
"normalize.css": "7.0.0",
|
"normalize.css": "7.0.0",
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"path-to-regexp": "2.4.0",
|
"path-to-regexp": "2.4.0",
|
||||||
|
"quill": "1.3.7",
|
||||||
"screenfull": "4.2.0",
|
"screenfull": "4.2.0",
|
||||||
"sortablejs": "1.8.4",
|
"sortablejs": "1.8.4",
|
||||||
"vue": "2.6.10",
|
"vue": "2.6.10",
|
||||||
"vue-count-to": "1.0.13",
|
"vue-count-to": "1.0.13",
|
||||||
"quill": "1.3.7",
|
|
||||||
"vue-cropper": "0.4.9",
|
"vue-cropper": "0.4.9",
|
||||||
"vue-router": "3.0.2",
|
"vue-router": "3.0.2",
|
||||||
"vue-splitpane": "1.0.4",
|
"vue-splitpane": "1.0.4",
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
|
import md5 from 'js-md5';
|
||||||
|
|
||||||
import 'normalize.css/normalize.css'; // a modern alternative to CSS resets
|
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.handleTree = handleTree;
|
||||||
Vue.prototype.formatRichText = formatRichText;
|
Vue.prototype.formatRichText = formatRichText;
|
||||||
Vue.prototype.stripscript = stripscript;
|
Vue.prototype.stripscript = stripscript;
|
||||||
|
Vue.prototype.md5 = md5;
|
||||||
|
|
||||||
Vue.prototype.msgSuccess = function(msg) {
|
Vue.prototype.msgSuccess = function(msg) {
|
||||||
this.$message({ showClose: true, message: msg, type: 'success' });
|
this.$message({ showClose: true, message: msg, type: 'success' });
|
||||||
|
@ -70,7 +70,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -147,6 +146,7 @@ export default {
|
|||||||
Cookies.remove('password');
|
Cookies.remove('password');
|
||||||
Cookies.remove('rememberMe');
|
Cookies.remove('rememberMe');
|
||||||
}
|
}
|
||||||
|
console.log(this.md5(this.loginForm.password));
|
||||||
this.$store
|
this.$store
|
||||||
.dispatch('Login', this.loginForm)
|
.dispatch('Login', this.loginForm)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
Reference in New Issue
Block a user