af-mobile-client-vue3 1.3.21 → 1.3.22

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,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.3.21",
4
+ "version": "1.3.22",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -123,9 +123,9 @@ function handleSubmit() {
123
123
  await afterGeneral(data)
124
124
  else
125
125
  if (data.resources.data)
126
- await afterGeneral(data.resources.data)
126
+ await afterGeneral(data.resources.data, data.access_token)
127
127
  else
128
- await afterGeneral(data.resources)
128
+ await afterGeneral(data.resources, data.access_token)
129
129
 
130
130
  const toPath = decodeURIComponent((route.query?.redirect || '/') as string)
131
131
  closeToast()
@@ -160,8 +160,7 @@ function closeWindows() {
160
160
  }
161
161
  }
162
162
 
163
- async function afterGeneral(result) {
164
- console.log('>>>> result: ', JSON.stringify(result))
163
+ async function afterGeneral(result, token = '') {
165
164
  // 排序 functions 及其嵌套的 children
166
165
  if (result.functions && Array.isArray(result.functions)) {
167
166
  // 对顶层菜单进行排序
@@ -198,6 +197,7 @@ async function afterGeneral(result) {
198
197
  username: formData.username,
199
198
  password: formData.password,
200
199
  rememberMe: rememberMe.value,
200
+ token,
201
201
  },
202
202
  },
203
203
  {
package/vite.config.ts CHANGED
@@ -11,8 +11,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
11
11
 
12
12
  const appProxys = {}
13
13
 
14
- const v4Server = 'http://192.168.50.67:31567'
15
- const v3Server = 'http://192.168.50.67:31567'
14
+ const v4Server = 'http://192.168.50.67:31467'
15
+ const v3Server = 'http://192.168.50.67:31467'
16
16
  const OSSServerDev = 'http://192.168.50.67:30351'
17
17
  const geoserver = 'http://39.104.49.8:30372'
18
18
  // const OSSServerProd = 'http://192.168.50.67:31351'