@peng_kai/kit 0.1.13 → 0.1.14
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
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@peng_kai/kit",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"description": "",
|
|
6
|
-
"author": "",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"keywords": [],
|
|
9
|
-
"main": "index.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"lint": "eslint .",
|
|
12
|
-
"lint:fix": "eslint . --fix"
|
|
13
|
-
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"@tanstack/vue-query": "4.37.1",
|
|
16
|
-
"@vueuse/core": "10.6.1",
|
|
17
|
-
"ant-design-vue": "4.0.8",
|
|
18
|
-
"axios": "1.6.2",
|
|
19
|
-
"bignumber.js": "9.1.2",
|
|
20
|
-
"dayjs": "1.11.10",
|
|
21
|
-
"lodash-es": "4.17.21",
|
|
22
|
-
"vue": "3.3.8",
|
|
23
|
-
"vue-router": "4.2.5"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@babel/generator": "^7.23.5",
|
|
27
|
-
"@babel/parser": "^7.23.5",
|
|
28
|
-
"@babel/traverse": "^7.23.5",
|
|
29
|
-
"@babel/types": "^7.23.5",
|
|
30
|
-
"@tanstack/vue-query": "^4.37.1",
|
|
31
|
-
"@vueuse/core": "^10.6.1",
|
|
32
|
-
"a-calc": "^1.3.8",
|
|
33
|
-
"ant-design-vue": "^4.0.8",
|
|
34
|
-
"axios": "^1.6.2",
|
|
35
|
-
"bignumber.js": "^9.1.2",
|
|
36
|
-
"chokidar": "^3.5.3",
|
|
37
|
-
"dayjs": "^1.11.10",
|
|
38
|
-
"fast-glob": "^3.3.2",
|
|
39
|
-
"lodash-es": "^4.17.21",
|
|
40
|
-
"nprogress": "^0.2.0",
|
|
41
|
-
"vue": "^3.3.8",
|
|
42
|
-
"vue-router": "^4.2.5"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@antfu/eslint-config": "^1.2.1",
|
|
46
|
-
"@peng_kai/lint": "^0.1.0",
|
|
47
|
-
"@types/lodash-es": "^4.17.11",
|
|
48
|
-
"@types/node": "18",
|
|
49
|
-
"@types/nprogress": "^0.2.3",
|
|
50
|
-
"@unocss/eslint-plugin": "^0.57.7",
|
|
51
|
-
"type-fest": "^4.8.1",
|
|
52
|
-
"typescript": "^5.2.2",
|
|
53
|
-
"vue-component-type-helpers": "^1.8.22"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@peng_kai/kit",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.14",
|
|
5
|
+
"description": "",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"lint:fix": "eslint . --fix"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@tanstack/vue-query": "4.37.1",
|
|
16
|
+
"@vueuse/core": "10.6.1",
|
|
17
|
+
"ant-design-vue": "4.0.8",
|
|
18
|
+
"axios": "1.6.2",
|
|
19
|
+
"bignumber.js": "9.1.2",
|
|
20
|
+
"dayjs": "1.11.10",
|
|
21
|
+
"lodash-es": "4.17.21",
|
|
22
|
+
"vue": "3.3.8",
|
|
23
|
+
"vue-router": "4.2.5"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@babel/generator": "^7.23.5",
|
|
27
|
+
"@babel/parser": "^7.23.5",
|
|
28
|
+
"@babel/traverse": "^7.23.5",
|
|
29
|
+
"@babel/types": "^7.23.5",
|
|
30
|
+
"@tanstack/vue-query": "^4.37.1",
|
|
31
|
+
"@vueuse/core": "^10.6.1",
|
|
32
|
+
"a-calc": "^1.3.8",
|
|
33
|
+
"ant-design-vue": "^4.0.8",
|
|
34
|
+
"axios": "^1.6.2",
|
|
35
|
+
"bignumber.js": "^9.1.2",
|
|
36
|
+
"chokidar": "^3.5.3",
|
|
37
|
+
"dayjs": "^1.11.10",
|
|
38
|
+
"fast-glob": "^3.3.2",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"nprogress": "^0.2.0",
|
|
41
|
+
"vue": "^3.3.8",
|
|
42
|
+
"vue-router": "^4.2.5"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@antfu/eslint-config": "^1.2.1",
|
|
46
|
+
"@peng_kai/lint": "^0.1.0",
|
|
47
|
+
"@types/lodash-es": "^4.17.11",
|
|
48
|
+
"@types/node": "18",
|
|
49
|
+
"@types/nprogress": "^0.2.3",
|
|
50
|
+
"@unocss/eslint-plugin": "^0.57.7",
|
|
51
|
+
"type-fest": "^4.8.1",
|
|
52
|
+
"typescript": "^5.2.2",
|
|
53
|
+
"vue-component-type-helpers": "^1.8.22"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -12,8 +12,8 @@ export function formatPaging(): Parameters<AxiosInterceptorManager<any>['use']>
|
|
|
12
12
|
return resp;
|
|
13
13
|
|
|
14
14
|
if (result.pagination) {
|
|
15
|
-
const originData = result?.data
|
|
16
|
-
result.data = originData
|
|
15
|
+
const originData = result?.data;
|
|
16
|
+
result.data = originData?.list ? { ...originData } : { list: originData };
|
|
17
17
|
result.data.pagination = result.pagination;
|
|
18
18
|
|
|
19
19
|
Reflect.deleteProperty(result, 'pagination');
|