|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
<div v-if="errStatus.indexOf('code-') !== -1">
|
|
|
|
|
<ErrCode :code="errStatus.replaceAll('code-', '')" />
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="errStatus === 'not-found'">
|
|
|
|
|
<div v-if="errStatus === 'err-found'">
|
|
|
|
|
<ErrFound />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -46,7 +46,7 @@ import ErrIP from '@/components/error-message/err_ip.vue';
|
|
|
|
|
import ErrCode from '@/components/error-message/error_code.vue';
|
|
|
|
|
import ErrDomain from '@/components/error-message/err_domain.vue';
|
|
|
|
|
import ErrFound from '@/components/error-message/404.vue';
|
|
|
|
|
import { ref, onMounted } from 'vue';
|
|
|
|
|
import { ref, onMounted, watch } from 'vue';
|
|
|
|
|
import { GlobalStore } from '@/store';
|
|
|
|
|
import { getXpackSetting, initFavicon } from '@/utils/xpack';
|
|
|
|
|
const globalStore = GlobalStore();
|
|
|
|
@ -61,7 +61,14 @@ const mySafetyCode = defineProps({
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
() => globalStore.errStatus,
|
|
|
|
|
(newVal) => {
|
|
|
|
|
if (newVal?.startsWith('err-') || newVal?.startsWith('code-')) {
|
|
|
|
|
errStatus.value = newVal;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
const getStatus = async () => {
|
|
|
|
|
let info = globalStore.errStatus;
|
|
|
|
|
if (info?.startsWith('err-') || info?.startsWith('code-')) {
|
|
|
|
@ -74,7 +81,6 @@ const getStatus = async () => {
|
|
|
|
|
await checkIsSafety(code)
|
|
|
|
|
.then(() => {
|
|
|
|
|
loading.value = false;
|
|
|
|
|
errStatus.value = '';
|
|
|
|
|
loadDataFromXDB();
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|