mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-05-21 00:09:16 +08:00
fix: modify apploading
This commit is contained in:
parent
ec85ffaea2
commit
89e8b0e3e1
@ -2,6 +2,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<naive-provider>
|
||||||
<div id="loading-container">
|
<div id="loading-container">
|
||||||
<div class="boxes">
|
<div class="boxes">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
@ -30,6 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</naive-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -66,12 +66,7 @@ export const useRouteStore = defineStore('route-store', {
|
|||||||
// Initialize route information
|
// Initialize route information
|
||||||
const rowRoutes = await this.initRouteInfo()
|
const rowRoutes = await this.initRouteInfo()
|
||||||
if (!rowRoutes) {
|
if (!rowRoutes) {
|
||||||
// Check if the message variable is defined
|
|
||||||
if (window.$message)
|
|
||||||
window.$message.error($t(`app.getRouteError`))
|
window.$message.error($t(`app.getRouteError`))
|
||||||
else
|
|
||||||
throw new Error($t(`app.getRouteError`))
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.rowRoutes = rowRoutes
|
this.rowRoutes = rowRoutes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user