af-mobile-client-vue3 1.3.20 → 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
|
@@ -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,7 +160,7 @@ function closeWindows() {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
async function afterGeneral(result) {
|
|
163
|
+
async function afterGeneral(result, token = '') {
|
|
164
164
|
// 排序 functions 及其嵌套的 children
|
|
165
165
|
if (result.functions && Array.isArray(result.functions)) {
|
|
166
166
|
// 对顶层菜单进行排序
|
|
@@ -197,6 +197,7 @@ async function afterGeneral(result) {
|
|
|
197
197
|
username: formData.username,
|
|
198
198
|
password: formData.password,
|
|
199
199
|
rememberMe: rememberMe.value,
|
|
200
|
+
token,
|
|
200
201
|
},
|
|
201
202
|
},
|
|
202
203
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { PhoneLocationStatus } from '
|
|
2
|
+
import type { PhoneLocationStatus } from '@af-mobile-client-vue3/components/data/XOlMap/types'
|
|
3
3
|
import useSettingStore from '@af-mobile-client-vue3/stores/modules/setting'
|
|
4
4
|
import useUserStore from '@af-mobile-client-vue3/stores/modules/user'
|
|
5
|
+
import { mobileUtil } from '@af-mobile-client-vue3/utils/mobileUtil'
|
|
5
6
|
import { Dialog as vanDialog, Icon as vanIcon } from 'vant'
|
|
6
7
|
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
|
7
8
|
import { useRouter } from 'vue-router'
|
|
8
|
-
import { mobileUtil } from '~root/src/utils/mobileUtil'
|
|
9
9
|
import ModifyPassword from './comm/ModifyPassword.vue'
|
|
10
10
|
|
|
11
11
|
const router = useRouter()
|
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:
|
|
15
|
-
const v3Server = 'http://192.168.50.67:
|
|
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'
|