feat: stores
This commit is contained in:
@@ -8,7 +8,7 @@ import { defineStore } from 'pinia';
|
||||
import { ref } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { useStationStore } from './station';
|
||||
import { onlineManager } from '@tanstack/vue-query';
|
||||
import { useQueryControlStore } from './query-control';
|
||||
|
||||
const getHeaders = () => {
|
||||
const { lampAuthorization, lampClientId, lampClientSecret } = getAppEnvConfig();
|
||||
@@ -131,7 +131,8 @@ export const useUserStore = defineStore(
|
||||
window.location.reload();
|
||||
},
|
||||
});
|
||||
onlineManager.setOnline(false);
|
||||
const queryControlStore = useQueryControlStore();
|
||||
queryControlStore.disablePolling();
|
||||
throw new AxiosError(respData.msg, `${respData.code}`);
|
||||
} else {
|
||||
if (lampLoginResultRecord.value === null) {
|
||||
|
||||
Reference in New Issue
Block a user