@hanology/cham-browser 0.4.67 → 0.4.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/src/App.vue +7 -1
- package/template/src/main.ts +2 -1
package/package.json
CHANGED
package/template/src/App.vue
CHANGED
|
@@ -57,7 +57,8 @@ function onKey(event: KeyboardEvent) {
|
|
|
57
57
|
<component :is="Component" />
|
|
58
58
|
<template #fallback>
|
|
59
59
|
<div class="route-loading">
|
|
60
|
-
<
|
|
60
|
+
<img v-if="logoUrl" :src="logoUrl" alt="" class="route-loading-logo" />
|
|
61
|
+
<div v-else class="route-loading-seal">文</div>
|
|
61
62
|
</div>
|
|
62
63
|
</template>
|
|
63
64
|
</Suspense>
|
|
@@ -177,6 +178,11 @@ function onKey(event: KeyboardEvent) {
|
|
|
177
178
|
justify-content: center;
|
|
178
179
|
min-height: 100vh;
|
|
179
180
|
}
|
|
181
|
+
.route-loading-logo {
|
|
182
|
+
width: 56px; height: auto;
|
|
183
|
+
object-fit: contain;
|
|
184
|
+
animation: pulse 1.2s ease-in-out infinite;
|
|
185
|
+
}
|
|
180
186
|
.route-loading-seal {
|
|
181
187
|
width: 56px; height: 56px;
|
|
182
188
|
border: 2px solid var(--vermillion);
|
package/template/src/main.ts
CHANGED
|
@@ -15,7 +15,8 @@ export async function createApp() {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
if (!import.meta.env.SSR) {
|
|
18
|
-
createApp().then(({ app, router }) => {
|
|
18
|
+
createApp().then(async ({ app, router }) => {
|
|
19
|
+
await router.isReady()
|
|
19
20
|
app.mount('#app')
|
|
20
21
|
const loader = document.getElementById('app-loading')
|
|
21
22
|
if (loader) {
|