Skip to content

Commit

Permalink
fix: modify apploading
Browse files Browse the repository at this point in the history
  • Loading branch information
chansee97 committed Jun 7, 2024
1 parent ec85ffa commit 89e8b0e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 32 deletions.
54 changes: 28 additions & 26 deletions src/components/common/AppLoading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,36 @@
</script>

<template>
<div id="loading-container">
<div class="boxes">
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
<naive-provider>
<div id="loading-container">
<div class="boxes">
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
</div>
<div class="box">
<div />
<div />
<div />
<div />
</div>
</div>
</div>
</div>
</naive-provider>
</template>

<style scoped>
Expand Down
7 changes: 1 addition & 6 deletions src/store/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`))

window.$message.error($t(`app.getRouteError`))
return
}
this.rowRoutes = rowRoutes
Expand Down

0 comments on commit 89e8b0e

Please sign in to comment.