vue2-client 1.14.26 → 1.14.28
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/jest.config.js +22 -22
- package/package.json +108 -108
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/Upload/Upload.vue +1 -0
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XForm/demo.vue +105 -105
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XRate/demo.vue +102 -102
- package/src/router/index.js +27 -27
- package/src/utils/request.js +378 -377
- package/test/request.test.js +17 -17
- package/.cursor/rules/myrule.mdc +0 -9
package/test/request.test.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import EncryptUtil from '@vue2-client/utils/EncryptUtil'
|
|
2
|
-
import { test, describe } from '@jest/globals'
|
|
3
|
-
|
|
4
|
-
describe('请求加密模块', () => {
|
|
5
|
-
const VALID_KEY = 'a964287a2cef8781ed76bd63dcadd578'
|
|
6
|
-
const TEST_PAYLOAD = {
|
|
7
|
-
username: 'admin',
|
|
8
|
-
password: 'P@ssw0rd_测试',
|
|
9
|
-
timestamp: Date.now()
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// CBC加密测试
|
|
13
|
-
test('应生成有效的加密字符串', () => {
|
|
14
|
-
const encrypted = EncryptUtil.AESEncryptCBC(TEST_PAYLOAD, VALID_KEY)
|
|
15
|
-
console.log(encrypted)
|
|
16
|
-
})
|
|
17
|
-
})
|
|
1
|
+
import EncryptUtil from '@vue2-client/utils/EncryptUtil'
|
|
2
|
+
import { test, describe } from '@jest/globals'
|
|
3
|
+
|
|
4
|
+
describe('请求加密模块', () => {
|
|
5
|
+
const VALID_KEY = 'a964287a2cef8781ed76bd63dcadd578'
|
|
6
|
+
const TEST_PAYLOAD = {
|
|
7
|
+
username: 'admin',
|
|
8
|
+
password: 'P@ssw0rd_测试',
|
|
9
|
+
timestamp: Date.now()
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// CBC加密测试
|
|
13
|
+
test('应生成有效的加密字符串', () => {
|
|
14
|
+
const encrypted = EncryptUtil.AESEncryptCBC(TEST_PAYLOAD, VALID_KEY)
|
|
15
|
+
console.log(encrypted)
|
|
16
|
+
})
|
|
17
|
+
})
|