trigger re single class
This commit is contained in:
@@ -9,14 +9,15 @@ export const LoadingStore = defineStore('loading_store', () => {
|
||||
const user_loading = ref(false)
|
||||
const another_loading = ref(false)
|
||||
const exectuion_loading = ref(false)
|
||||
const re_loading = ref(false)
|
||||
|
||||
const isLoading = computed(() => {
|
||||
return scenario_loading.value || user_loading.value || another_loading.value || exectuion_loading.value
|
||||
return scenario_loading.value || user_loading.value || another_loading.value || exectuion_loading.value || re_loading.value
|
||||
})
|
||||
|
||||
const loadingType = computed(() => {
|
||||
if(exectuion_loading.value) return 'ai'
|
||||
|
||||
if(re_loading.value) return 'ai'
|
||||
if(scenario_loading.value) return 'data'
|
||||
if(user_loading.value) return 'data'
|
||||
if(another_loading.value) return 'data'
|
||||
@@ -28,6 +29,7 @@ export const LoadingStore = defineStore('loading_store', () => {
|
||||
scenario_loading,
|
||||
another_loading,
|
||||
exectuion_loading,
|
||||
re_loading,
|
||||
loadingType
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user