更换事件
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { ref, onMounted, onUnmounted } from "vue";
|
||||
import { ref, onMounted, onBeforeUnmount } from "vue";
|
||||
import HeaderProgress from "@/components/HeaderProgress.vue";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -48,7 +48,7 @@ onMounted(() => {
|
||||
showProgress.value = true;
|
||||
}
|
||||
});
|
||||
onUnmounted(() => {
|
||||
onBeforeUnmount(() => {
|
||||
uni.$off("update-header-loading", updateLoading);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user