回滚修复登陆的bug时不必修改的代码

This commit is contained in:
panlinlin
2021-01-13 18:10:26 +08:00
parent ac45e4f6c8
commit 518f0b0265
4 changed files with 2 additions and 11 deletions

View File

@@ -18,6 +18,7 @@
</template>
<script>
import crypto from 'crypto'
export default {
name: 'Login',
data(){
@@ -55,7 +56,7 @@ export default {
//需要想后端发送的登录参数
let loginParam = {
username: this.username,
password: this.$md5(this.password)
password: crypto.createHash('md5').update(this.password, "utf8").digest('hex')
}
var that = this;
//设置在登录状态

View File

@@ -9,10 +9,6 @@ import VueCookies from 'vue-cookies';
import echarts from 'echarts';
import VueClipboard from 'vue-clipboard2'
import md5 from 'js-md5'
Vue.prototype.$md5 = md5
Vue.use(VueClipboard)
Vue.use(ElementUI);
Vue.use(VueCookies);