Browse Source

fix: key和iv还是不要走接口去取

master
niushuai233 2 years ago
parent
commit
feda868232
  1. 4
      src/store/modules/encrypt.js
  2. 2
      src/views/user/Login.vue

4
src/store/modules/encrypt.js

@ -1,7 +1,7 @@
const encrypt = { const encrypt = {
state: { state: {
KEY: 'default', KEY: 'B3AC90F688974749',
IV: 'default' IV: 'A39F3975DC5D4D38'
}, },
mutations: { mutations: {
ENCRYPT_KEY: (state, key) => { ENCRYPT_KEY: (state, key) => {

2
src/views/user/Login.vue

@ -93,7 +93,7 @@ export default {
Vue.ls.remove(ACCESS_TOKEN) Vue.ls.remove(ACCESS_TOKEN)
this.getRouterData() this.getRouterData()
this.rememberMe = true this.rememberMe = true
this.initEncryptKv() // this.initEncryptKv()
}, },
methods: { methods: {
initEncryptKv() { initEncryptKv() {

Loading…
Cancel
Save