添加md5
This commit is contained in:
@ -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' });
|
||||
|
@ -70,11 +70,10 @@
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="login-form-bg"></div> -->
|
||||
<!-- 底部 -->
|
||||
<!-- <div class="el-login-footer">
|
||||
@ -147,6 +146,7 @@ export default {
|
||||
Cookies.remove('password');
|
||||
Cookies.remove('rememberMe');
|
||||
}
|
||||
console.log(this.md5(this.loginForm.password));
|
||||
this.$store
|
||||
.dispatch('Login', this.loginForm)
|
||||
.then(() => {
|
||||
|
Reference in New Issue
Block a user