af-mobile-client-vue3 1.5.81 → 1.5.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/stores/modules/user.ts +9 -10
- package/vite.config.ts +1 -1
package/package.json
CHANGED
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
} from '@af-mobile-client-vue3/stores/mutation-type'
|
|
18
18
|
import { getPlatformRoutePrefix } from '@af-mobile-client-vue3/types/platform'
|
|
19
19
|
import crypto from '@af-mobile-client-vue3/utils/crypto'
|
|
20
|
-
import { encryptUtil } from '@af-mobile-client-vue3/utils/EncryptUtil'
|
|
21
20
|
import { indexedDB } from '@af-mobile-client-vue3/utils/indexedDB'
|
|
22
21
|
import { secureStorageWrite } from '@af-mobile-client-vue3/utils/secureStorage'
|
|
23
22
|
import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
|
|
@@ -227,9 +226,9 @@ export const useUserStore = defineStore('app-user', () => {
|
|
|
227
226
|
// 第三方教培系统鉴权兼容
|
|
228
227
|
const LoginTicket = crypto.AESEncrypt(JSON.stringify(params), '3KMKqvgwR8ULbR8Z')
|
|
229
228
|
if (data.session && useSettingStore().getSetting().requestEncrypt) {
|
|
230
|
-
const k = encryptUtil.RSADecrypt(data.session as string)
|
|
231
|
-
localStorage.setItem('v4-session-key',
|
|
232
|
-
secureStorageWrite('v4-session-key',
|
|
229
|
+
// const k = encryptUtil.RSADecrypt(data.session as string)
|
|
230
|
+
localStorage.setItem('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
231
|
+
secureStorageWrite('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
233
232
|
}
|
|
234
233
|
Storage.set('LoginTicket', LoginTicket)
|
|
235
234
|
}
|
|
@@ -279,9 +278,9 @@ export const useUserStore = defineStore('app-user', () => {
|
|
|
279
278
|
const LoginTicket = crypto.AESEncrypt(JSON.stringify(params), '3KMKqvgwR8ULbR8Z')
|
|
280
279
|
Storage.set('LoginTicket', LoginTicket)
|
|
281
280
|
if (data.session && useSettingStore().getSetting().requestEncrypt) {
|
|
282
|
-
const k = encryptUtil.RSADecrypt(data.session as string)
|
|
283
|
-
localStorage.setItem('v4-session-key',
|
|
284
|
-
secureStorageWrite('v4-session-key',
|
|
281
|
+
// const k = encryptUtil.RSADecrypt(data.session as string)
|
|
282
|
+
localStorage.setItem('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
283
|
+
secureStorageWrite('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
285
284
|
}
|
|
286
285
|
return Promise.resolve(data)
|
|
287
286
|
}
|
|
@@ -297,9 +296,9 @@ export const useUserStore = defineStore('app-user', () => {
|
|
|
297
296
|
// 加密存储登录票据
|
|
298
297
|
const LoginTicket = crypto.AESEncrypt(JSON.stringify(data), '3KMKqvgwR8ULbR8Z')
|
|
299
298
|
if (data.session && useSettingStore().getSetting().requestEncrypt) {
|
|
300
|
-
const k = encryptUtil.RSADecrypt(data.session as string)
|
|
301
|
-
localStorage.setItem('v4-session-key',
|
|
302
|
-
secureStorageWrite('v4-session-key',
|
|
299
|
+
// const k = encryptUtil.RSADecrypt(data.session as string)
|
|
300
|
+
localStorage.setItem('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
301
|
+
secureStorageWrite('v4-session-key', 'c2e36db30f31944cdee8567380a157c6')
|
|
303
302
|
}
|
|
304
303
|
Storage.set('LoginTicket', LoginTicket)
|
|
305
304
|
|
package/vite.config.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|
|
11
11
|
|
|
12
12
|
const appProxys = {}
|
|
13
13
|
|
|
14
|
-
const v4Server = 'http://
|
|
14
|
+
const v4Server = 'http://124.89.121.211:31466'
|
|
15
15
|
const v3Server = 'http://192.168.50.67:31567'
|
|
16
16
|
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
17
17
|
const geoserver = 'http://192.168.50.67:31567'
|