|
@@ -11,6 +11,7 @@ import { encryptBody } from '@/services/websocket/package/crypto'
|
|
|
import { checkToken, checkTokenLoop } from '@/business/common'
|
|
import { checkToken, checkTokenLoop } from '@/business/common'
|
|
|
import eventBus from '@/services/bus'
|
|
import eventBus from '@/services/bus'
|
|
|
import cryptojs from 'crypto-js'
|
|
import cryptojs from 'crypto-js'
|
|
|
|
|
+import { useCommonStore } from '@/stores/modules/common'
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 登录业务模块
|
|
* 登录业务模块
|
|
@@ -27,6 +28,7 @@ export function useLogin(persist = false) {
|
|
|
const futuresStore = useFuturesStore()
|
|
const futuresStore = useFuturesStore()
|
|
|
const deliveryRelationStore = useDeliveryRelationStore()
|
|
const deliveryRelationStore = useDeliveryRelationStore()
|
|
|
const goodsCollectionStore = useGoodsCollectionStore()
|
|
const goodsCollectionStore = useGoodsCollectionStore()
|
|
|
|
|
+ const commonStore = useCommonStore()
|
|
|
|
|
|
|
|
const { logining, token } = loginStore.$toRefs()
|
|
const { logining, token } = loginStore.$toRefs()
|
|
|
|
|
|
|
@@ -45,6 +47,7 @@ export function useLogin(persist = false) {
|
|
|
userStore.getSystemParams()
|
|
userStore.getSystemParams()
|
|
|
])
|
|
])
|
|
|
goodsCollectionStore.fetchGoodsCollections()
|
|
goodsCollectionStore.fetchGoodsCollections()
|
|
|
|
|
+ commonStore.fetcheDocuments()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const loadUserData = async () => {
|
|
const loadUserData = async () => {
|