app验收反馈

This commit is contained in:
仲么了
2023-08-11 11:03:31 +08:00
parent f395da8f93
commit 792e1ce7d7
24 changed files with 357 additions and 98 deletions

View File

@@ -1,5 +1,6 @@
import request from './request'
import cache from './cacheKey.js'
import { getImageUrl } from '@/common/api/basic'
import { queryDictDataCache } from '../api/dictionary.js'
import cacheKey from './cacheKey.js'
const toast = (title, duration = 1500, call, mask = false, icon = 'none') => {
@@ -207,7 +208,14 @@ const loginSuccess = (data) => {
console.log(escape, atob)
var userInfo = JSON.parse(decodeURIComponent(escape(atob(strings[1].replace(/-/g, '+').replace(/_/g, '/')))))
userInfo.authorities = userInfo.authorities[0]
uni.setStorageSync('userInfo', userInfo)
if (userInfo.headSculpture) {
getImageUrl(userInfo.headSculpture).then((res) => {
userInfo.avatar = res.data
uni.setStorageSync(cache.userInfo, userInfo)
})
} else {
uni.setStorageSync(cache.userInfo, userInfo)
}
console.log('reLaunch')
queryDictDataCache().then((res) => {
uni.setStorageSync(cacheKey.dictData, res.data)