fix: modify apploading

This commit is contained in:
chansee97 2024-06-07 23:15:27 +08:00
parent ec85ffaea2
commit 89e8b0e3e1
2 changed files with 29 additions and 32 deletions

View File

@ -2,6 +2,7 @@
</script>
<template>
<naive-provider>
<div id="loading-container">
<div class="boxes">
<div class="box">
@ -30,6 +31,7 @@
</div>
</div>
</div>
</naive-provider>
</template>
<style scoped>

View File

@ -66,12 +66,7 @@ export const useRouteStore = defineStore('route-store', {
// Initialize route information
const rowRoutes = await this.initRouteInfo()
if (!rowRoutes) {
// Check if the message variable is defined
if (window.$message)
window.$message.error($t(`app.getRouteError`))
else
throw new Error($t(`app.getRouteError`))
return
}
this.rowRoutes = rowRoutes