@inzombieland/core 1.18.9 → 1.18.11
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/AppProvider.vue +5 -5
- package/index.mjs +1 -1
- package/package.json +1 -1
package/AppProvider.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { onMounted, ref } from "vue"
|
|
3
3
|
import bus from "./bus"
|
|
4
4
|
import { useThemeMode, useUser } from "./index"
|
|
5
5
|
import type { ConfigProviderTheme } from "vant"
|
|
@@ -9,13 +9,13 @@ const theme = useThemeMode()
|
|
|
9
9
|
const user = useUser()
|
|
10
10
|
const appLoading = ref(Boolean(user.value))
|
|
11
11
|
|
|
12
|
-
onBeforeMount(() => {
|
|
13
|
-
bus.publish("app:beforeMount", true)
|
|
14
|
-
})
|
|
15
|
-
|
|
16
12
|
onMounted(() => {
|
|
17
13
|
appLoading.value = false
|
|
18
14
|
})
|
|
15
|
+
|
|
16
|
+
if (typeof window !== "undefined") {
|
|
17
|
+
bus.publish("app:mounted", true)
|
|
18
|
+
}
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<template>
|
package/index.mjs
CHANGED