af-mobile-client-vue3 1.4.64 → 1.4.66

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,120 +1,120 @@
1
- {
2
- "name": "af-mobile-client-vue3",
3
- "type": "module",
4
- "version": "1.4.64",
5
- "packageManager": "pnpm@10.13.1",
6
- "description": "Vue + Vite component lib",
7
- "engines": {
8
- "node": ">=20.19.0"
9
- },
10
- "scripts": {
11
- "dev": "cross-env MOCK_SERVER_PORT=8086 vite",
12
- "compress": "node ./compress.js",
13
- "build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
14
- "build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
15
- "preview": "vite preview",
16
- "lint": "eslint .",
17
- "lint:fix": "eslint . --fix",
18
- "release": "bumpp --commit --push --tag",
19
- "typecheck": "vue-tsc --noEmit",
20
- "commitlint": "commitlint --edit",
21
- "prepare": "simple-git-hooks"
22
- },
23
- "dependencies": {
24
- "@iconify/vue": "4.3.0",
25
- "@matechat/core": "^1.10.0",
26
- "@micro-zoe/micro-app": "1.0.0-rc.26",
27
- "@unhead/vue": "2.0.12",
28
- "@vant/area-data": "^2.0.0",
29
- "@vant/touch-emulator": "^1.4.0",
30
- "@vant/use": "^1.6.0",
31
- "@vueuse/core": "^13.5.0",
32
- "axios": "^1.10.0",
33
- "bcryptjs": "^2.4.3",
34
- "crypto-js": "^4.2.0",
35
- "moment": "^2.21.0",
36
- "dayjs": "^1.11.13",
37
- "echarts": "^5.6.0",
38
- "jsencrypt": "^3.3.2",
39
- "lodash-es": "^4.17.21",
40
- "nprogress": "^0.2.0",
41
- "ol": "^10.5.0",
42
- "pinia": "^3.0.3",
43
- "pinia-plugin-persistedstate": "^4.4.1",
44
- "resize-detector": "^0.3.0",
45
- "vant": "^4.9.21",
46
- "vconsole": "^3.15.1",
47
- "vue": "^3.5.17",
48
- "vue-i18n": "^11.1.10",
49
- "vue-router": "^4.5.1",
50
- "vue3-hash-calendar": "^1.1.3",
51
- "weixin-js-sdk": "^1.6.5",
52
- "js-base64": "^3.7.8"
53
- },
54
- "devDependencies": {
55
- "@antfu/eslint-config": "4.17.0",
56
- "@commitlint/cli": "^19.8.1",
57
- "@commitlint/config-conventional": "^19.8.1",
58
- "@commitlint/types": "^19.8.1",
59
- "@iconify/json": "2.2.318",
60
- "@iconify/utils": "^2.3.0",
61
- "@intlify/unplugin-vue-i18n": "^6.0.8",
62
- "@types/crypto-js": "^4.2.2",
63
- "@types/lodash-es": "^4.17.12",
64
- "@types/node": "^24.0.14",
65
- "@types/nprogress": "^0.2.3",
66
- "@unocss/eslint-config": "66.3.3",
67
- "@vitejs/plugin-legacy": "^7.0.1",
68
- "@vitejs/plugin-vue": "^6.0.0",
69
- "autoprefixer": "^10.4.21",
70
- "bumpp": "^10.2.0",
71
- "consola": "^3.4.2",
72
- "cross-env": "^7.0.3",
73
- "eslint": "^9.31.0",
74
- "eslint-plugin-format": "^1.0.1",
75
- "less": "^4.4.0",
76
- "lint-staged": "^16.1.2",
77
- "mockjs": "^1.1.0",
78
- "postcss-mobile-forever": "^5.0.0",
79
- "rollup": "^4.45.1",
80
- "simple-git-hooks": "^2.13.0",
81
- "tar": "^7.4.3",
82
- "terser": "^5.43.1",
83
- "typescript": "^5.8.3",
84
- "unocss": "66.3.3",
85
- "vite": "^7.0.5",
86
- "vite-plugin-compression": "^0.5.1",
87
- "vite-plugin-mock-dev-server": "^1.9.1",
88
- "vite-plugin-pwa": "^1.0.1",
89
- "vite-plugin-sitemap": "^0.8.2",
90
- "vite-plugin-vconsole": "^2.1.1",
91
- "vite-plugin-vue-devtools": "^7.7.7",
92
- "vue-tsc": "^3.0.2"
93
- },
94
- "pnpm": {
95
- "allowedDeprecatedVersions": {
96
- "glob": "7.2.3",
97
- "inflight": "1.0.6",
98
- "sourcemap-codec": "1.4.8"
99
- },
100
- "peerDependencyRules": {
101
- "allowedVersions": {}
102
- },
103
- "onlyBuiltDependencies": [
104
- "core-js",
105
- "esbuild",
106
- "simple-git-hooks",
107
- "unrs-resolver"
108
- ]
109
- },
110
- "resolutions": {
111
- "vite": "^7.0.5"
112
- },
113
- "simple-git-hooks": {
114
- "pre-commit": "pnpm lint-staged",
115
- "commit-msg": "pnpm commitlint $1"
116
- },
117
- "lint-staged": {
118
- "*": "eslint --fix"
119
- }
120
- }
1
+ {
2
+ "name": "af-mobile-client-vue3",
3
+ "type": "module",
4
+ "version": "1.4.66",
5
+ "packageManager": "pnpm@10.13.1",
6
+ "description": "Vue + Vite component lib",
7
+ "engines": {
8
+ "node": ">=20.19.0"
9
+ },
10
+ "scripts": {
11
+ "dev": "cross-env MOCK_SERVER_PORT=8086 vite",
12
+ "compress": "node ./compress.js",
13
+ "build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
14
+ "build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
15
+ "preview": "vite preview",
16
+ "lint": "eslint .",
17
+ "lint:fix": "eslint . --fix",
18
+ "release": "bumpp --commit --push --tag",
19
+ "typecheck": "vue-tsc --noEmit",
20
+ "commitlint": "commitlint --edit",
21
+ "prepare": "simple-git-hooks"
22
+ },
23
+ "dependencies": {
24
+ "@iconify/vue": "4.3.0",
25
+ "@matechat/core": "^1.10.0",
26
+ "@micro-zoe/micro-app": "1.0.0-rc.26",
27
+ "@unhead/vue": "2.0.12",
28
+ "@vant/area-data": "^2.0.0",
29
+ "@vant/touch-emulator": "^1.4.0",
30
+ "@vant/use": "^1.6.0",
31
+ "@vueuse/core": "^13.5.0",
32
+ "axios": "^1.10.0",
33
+ "bcryptjs": "^2.4.3",
34
+ "crypto-js": "^4.2.0",
35
+ "moment": "^2.21.0",
36
+ "dayjs": "^1.11.13",
37
+ "echarts": "^5.6.0",
38
+ "jsencrypt": "^3.3.2",
39
+ "lodash-es": "^4.17.21",
40
+ "nprogress": "^0.2.0",
41
+ "ol": "^10.5.0",
42
+ "pinia": "^3.0.3",
43
+ "pinia-plugin-persistedstate": "^4.4.1",
44
+ "resize-detector": "^0.3.0",
45
+ "vant": "^4.9.21",
46
+ "vconsole": "^3.15.1",
47
+ "vue": "^3.5.17",
48
+ "vue-i18n": "^11.1.10",
49
+ "vue-router": "^4.5.1",
50
+ "vue3-hash-calendar": "^1.1.3",
51
+ "weixin-js-sdk": "^1.6.5",
52
+ "js-base64": "^3.7.8"
53
+ },
54
+ "devDependencies": {
55
+ "@antfu/eslint-config": "4.17.0",
56
+ "@commitlint/cli": "^19.8.1",
57
+ "@commitlint/config-conventional": "^19.8.1",
58
+ "@commitlint/types": "^19.8.1",
59
+ "@iconify/json": "2.2.318",
60
+ "@iconify/utils": "^2.3.0",
61
+ "@intlify/unplugin-vue-i18n": "^6.0.8",
62
+ "@types/crypto-js": "^4.2.2",
63
+ "@types/lodash-es": "^4.17.12",
64
+ "@types/node": "^24.0.14",
65
+ "@types/nprogress": "^0.2.3",
66
+ "@unocss/eslint-config": "66.3.3",
67
+ "@vitejs/plugin-legacy": "^7.0.1",
68
+ "@vitejs/plugin-vue": "^6.0.0",
69
+ "autoprefixer": "^10.4.21",
70
+ "bumpp": "^10.2.0",
71
+ "consola": "^3.4.2",
72
+ "cross-env": "^7.0.3",
73
+ "eslint": "^9.31.0",
74
+ "eslint-plugin-format": "^1.0.1",
75
+ "less": "^4.4.0",
76
+ "lint-staged": "^16.1.2",
77
+ "mockjs": "^1.1.0",
78
+ "postcss-mobile-forever": "^5.0.0",
79
+ "rollup": "^4.45.1",
80
+ "simple-git-hooks": "^2.13.0",
81
+ "tar": "^7.4.3",
82
+ "terser": "^5.43.1",
83
+ "typescript": "^5.8.3",
84
+ "unocss": "66.3.3",
85
+ "vite": "^7.0.5",
86
+ "vite-plugin-compression": "^0.5.1",
87
+ "vite-plugin-mock-dev-server": "^1.9.1",
88
+ "vite-plugin-pwa": "^1.0.1",
89
+ "vite-plugin-sitemap": "^0.8.2",
90
+ "vite-plugin-vconsole": "^2.1.1",
91
+ "vite-plugin-vue-devtools": "^7.7.7",
92
+ "vue-tsc": "^3.0.2"
93
+ },
94
+ "pnpm": {
95
+ "allowedDeprecatedVersions": {
96
+ "glob": "7.2.3",
97
+ "inflight": "1.0.6",
98
+ "sourcemap-codec": "1.4.8"
99
+ },
100
+ "peerDependencyRules": {
101
+ "allowedVersions": {}
102
+ },
103
+ "onlyBuiltDependencies": [
104
+ "core-js",
105
+ "esbuild",
106
+ "simple-git-hooks",
107
+ "unrs-resolver"
108
+ ]
109
+ },
110
+ "resolutions": {
111
+ "vite": "^7.0.5"
112
+ },
113
+ "simple-git-hooks": {
114
+ "pre-commit": "pnpm lint-staged",
115
+ "commit-msg": "pnpm commitlint $1"
116
+ },
117
+ "lint-staged": {
118
+ "*": "eslint --fix"
119
+ }
120
+ }
@@ -1,45 +1,45 @@
1
- import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
2
-
3
- import { get, post } from '@af-mobile-client-vue3/services/restTools'
4
- import { http } from '@af-mobile-client-vue3/utils/http'
5
-
6
- export interface BasicResponseModel<T = any> {
7
- code: number
8
- msg: string
9
- data: T
10
- }
11
-
12
- export function login(data: any) {
13
- return post(
14
- loginApi.Login,
15
- data,
16
- )
17
- }
18
-
19
- export function OALogin(data: any) {
20
- return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
21
- }
22
-
23
- /**
24
- * @description: 获取用户信息
25
- */
26
- export function getUserInfo(data: any) {
27
- const params = {
28
- resourceName: data.resourceName,
29
- isMobile: true,
30
- }
31
- return get(
32
- `/af-system/user/info/${data.username}`,
33
- params,
34
- )
35
- }
36
-
37
- /**
38
- * @description: 用户登出
39
- */
40
- export function doLogout() {
41
- return http.request({
42
- url: loginApi.Logout,
43
- method: 'DELETE',
44
- })
45
- }
1
+ import { loginApi } from '@af-mobile-client-vue3/services/api/Login'
2
+
3
+ import { get, post } from '@af-mobile-client-vue3/services/restTools'
4
+ import { http } from '@af-mobile-client-vue3/utils/http'
5
+
6
+ export interface BasicResponseModel<T = any> {
7
+ code: number
8
+ msg: string
9
+ data: T
10
+ }
11
+
12
+ export function login(data: any) {
13
+ return post(
14
+ loginApi.Login,
15
+ data,
16
+ )
17
+ }
18
+
19
+ export function OALogin(data: any) {
20
+ return get(`/af-system/user/${data.username}/${data.password}/智慧OA`)
21
+ }
22
+
23
+ /**
24
+ * @description: 获取用户信息
25
+ */
26
+ export function getUserInfo(data: any) {
27
+ const params = {
28
+ resourceName: data.resourceName,
29
+ isMobile: true,
30
+ }
31
+ return get(
32
+ `/af-system/user/info/${data.username}`,
33
+ params,
34
+ )
35
+ }
36
+
37
+ /**
38
+ * @description: 用户登出
39
+ */
40
+ export function doLogout() {
41
+ return http.request({
42
+ url: loginApi.Logout,
43
+ method: 'DELETE',
44
+ })
45
+ }