diff --git a/src/store/getters.js b/src/store/getters.js
index 645e1b4..4678964 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -18,6 +18,8 @@ const getters = {
return state.enhance.enhanceJs[code]
},
sysSafeMode: state => state.user.sysSafeMode,
+ encryptKey: state => state.encrypt.KEY,
+ encryptIv: state => state.encrypt.IV
}
diff --git a/src/store/index.js b/src/store/index.js
index 5936c50..4614d28 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -7,6 +7,7 @@ import permission from './modules/permission'
import enhance from './modules/enhance'
import online from './modules/online'
import getters from './getters'
+import encrypt from './modules/encrypt'
Vue.use(Vuex)
@@ -17,6 +18,7 @@ export default new Vuex.Store({
permission,
enhance,
online,
+ encrypt
},
state: {
diff --git a/src/store/modules/encrypt.js b/src/store/modules/encrypt.js
new file mode 100644
index 0000000..5300112
--- /dev/null
+++ b/src/store/modules/encrypt.js
@@ -0,0 +1,24 @@
+const encrypt = {
+ state: {
+ KEY: 'default',
+ IV: 'default'
+ },
+ mutations: {
+ ENCRYPT_KEY: (state, key) => {
+ state.KEY = key
+ },
+ ENCRYPT_IV: (state, iv) => {
+ state.IV = iv
+ }
+ },
+ action: {
+ setEncryptKey: ({ commit }, type) => {
+ commit('ENCRYPT_KEY', type)
+ },
+ setEncryptIv: ({ commit }, type) => {
+ commit('ENCRYPT_IV', type)
+ }
+ }
+}
+
+export default encrypt
diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js
index fee0f7f..a7e1b11 100644
--- a/src/store/mutation-types.js
+++ b/src/store/mutation-types.js
@@ -25,4 +25,6 @@ export const CACHE_INCLUDED_ROUTES = 'CACHE_INCLUDED_ROUTES'
export const CONTENT_WIDTH_TYPE = {
Fluid: 'Fluid',
Fixed: 'Fixed'
-}
\ No newline at end of file
+}
+export const ENCRYPT_KEY = "ENCRYPT_KEY"
+export const ENCRYPT_IV = "ENCRYPT_IV"
\ No newline at end of file
diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index e2ad134..662ccfe 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -1,214 +1,242 @@
-
-
-
-
-
-
-
-
-
+
-
- 自动登录
-
+
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
+
+
+
+ 确定
+
+
+
+
+
+
+
+
\ No newline at end of file
+}
+