chore: update

This commit is contained in:
xiaoxian521
2022-08-11 22:23:41 +08:00
parent 243c8f71a7
commit bcbc110883
5 changed files with 385 additions and 346 deletions

View File

@@ -8,7 +8,7 @@ defineOptions({
});
const { t } = useI18n();
const loading = ref(false);
const loading = ref(true);
const currentRoute = useRoute();
const frameSrc = ref<string>("");
const frameRef = ref<HTMLElement | null>(null);
@@ -16,6 +16,7 @@ const frameRef = ref<HTMLElement | null>(null);
if (unref(currentRoute.meta)?.frameSrc) {
frameSrc.value = unref(currentRoute.meta)?.frameSrc as string;
}
unref(currentRoute.meta)?.frameLoading === false && hideLoading();
function hideLoading() {
loading.value = false;
@@ -39,7 +40,6 @@ function init() {
}
onMounted(() => {
loading.value = true;
init();
});
</script>