|
@@ -9,7 +9,7 @@ import { logout, refreshToken, userLogin } from '~api/user'
|
|
import { userConfigInfo, userConfigSave } from '~api/other'
|
|
import { userConfigInfo, userConfigSave } from '~api/other'
|
|
import { ArrToOneObj, arrIndex, getArrValue, getObjValue } from 'js-fast-way'
|
|
import { ArrToOneObj, arrIndex, getArrValue, getObjValue } from 'js-fast-way'
|
|
import { useOsTheme } from 'hc-vue3-ui'
|
|
import { useOsTheme } from 'hc-vue3-ui'
|
|
-import * as Sentry from '@sentry/vue'
|
|
|
|
|
|
+//import * as Sentry from '@sentry/vue'
|
|
|
|
|
|
//初始变量
|
|
//初始变量
|
|
const store = useAppStore(pinia)
|
|
const store = useAppStore(pinia)
|
|
@@ -22,10 +22,10 @@ export const useAppLogin = async (form) => {
|
|
store.setRefreshTokenVal(res['refresh_token'])
|
|
store.setRefreshTokenVal(res['refresh_token'])
|
|
store.setTenantId(res['tenant_id'])
|
|
store.setTenantId(res['tenant_id'])
|
|
store.setUserInfo(res)
|
|
store.setUserInfo(res)
|
|
- Sentry.setUser({
|
|
|
|
|
|
+ /*Sentry.setUser({
|
|
id: res['user_id'],
|
|
id: res['user_id'],
|
|
username: res['real_name'],
|
|
username: res['real_name'],
|
|
- })
|
|
|
|
|
|
+ })*/
|
|
const routerRes = await setRouterData()
|
|
const routerRes = await setRouterData()
|
|
if (!routerRes) {
|
|
if (!routerRes) {
|
|
return Promise.reject({ msg: '路由异常' })
|
|
return Promise.reject({ msg: '路由异常' })
|