Fix particle effects not reloading when the Particles component is re-mounted
This commit is contained in:
parent
65e265768b
commit
7db806afc6
2 changed files with 7 additions and 7 deletions
|
@ -63,9 +63,9 @@ const validLinks = computed(() => {
|
|||
<style scoped>
|
||||
.resize-listener {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
top: 0px;
|
||||
left: 0;
|
||||
right: -4px;
|
||||
bottom: 5px;
|
||||
z-index: -10;
|
||||
pointer-events: none;
|
||||
|
|
|
@ -63,7 +63,7 @@ export default defineComponent({
|
|||
props.onInit(app.value as Application);
|
||||
}
|
||||
updateBounds();
|
||||
if (module.hot?.status() === "apply" && props.onHotReload) {
|
||||
if (props.onHotReload) {
|
||||
nextTick(props.onHotReload);
|
||||
}
|
||||
});
|
||||
|
@ -102,9 +102,9 @@ export default defineComponent({
|
|||
.not-fullscreen,
|
||||
.resize-listener {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
top: 0px;
|
||||
left: 0;
|
||||
right: -4px;
|
||||
bottom: 5px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue