|
@@ -224,7 +224,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import {computed, getCurrentInstance, onBeforeMount, onMounted, reactive, ref, watch} from "vue";
|
|
|
import {useRoute, useRouter} from "vue-router";
|
|
|
-import {useAppStore, useDictionaryStore, useWebStore} from "@/stores";
|
|
|
+import {useAppStore, useDictionaryStore, useThemeStore, useWebStore} from "@/stores";
|
|
|
import {ElLoading, ElMessage} from "element-plus";
|
|
|
import {frontGetIndexAndFieldInfo} from "@/api/modules/web/list";
|
|
|
import DetailCom from './detail.vue'
|
|
@@ -232,6 +232,7 @@ import DetailCom from './detail.vue'
|
|
|
const {proxy} = getCurrentInstance()
|
|
|
const AppStore = useAppStore()
|
|
|
const WebStore = useWebStore()
|
|
|
+const ThemeStore = useThemeStore()
|
|
|
const DictionaryStore = useDictionaryStore()
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -281,7 +282,6 @@ const state: any = reactive({
|
|
|
show: false
|
|
|
}
|
|
|
})
|
|
|
-const loadingBg = 'rgba(0, 0, 0, 0.4)'
|
|
|
const ref_area = ref()
|
|
|
const isSelectAllCpt = computed(() => {
|
|
|
return WebStore.searchAreaIndexTotal === state.cascaderParams.value.length
|
|
@@ -549,7 +549,7 @@ const initWS = () => {
|
|
|
state.ws.loading = ElLoading.service({
|
|
|
lock: true,
|
|
|
text: '详情信息获取中……',
|
|
|
- background: loadingBg,
|
|
|
+ background: ThemeStore.loadingBg,
|
|
|
})
|
|
|
if (state.ws.loadingTimer) {
|
|
|
clearTimeout(state.ws.loadingTimer)
|
|
@@ -659,7 +659,7 @@ const initWS = () => {
|
|
|
state.ws.loading = ElLoading.service({
|
|
|
lock: true,
|
|
|
text: '智搜服务重新连接中……',
|
|
|
- background: loadingBg,
|
|
|
+ background: ThemeStore.loadingBg,
|
|
|
})
|
|
|
setTimeout(initWS, 5000);
|
|
|
}
|