mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
fixed ?
This commit is contained in:
parent
a8809ed5a4
commit
36ec08ee13
@ -63,14 +63,14 @@ const DynamicComponent = {
|
||||
}
|
||||
|
||||
//housecleaning, remove old component
|
||||
//const previousRouteName =
|
||||
// this.$router.currentRoute.value.meta.previousRouteName
|
||||
//if (
|
||||
// previousRouteName &&
|
||||
// window.app._context.components[previousRouteName]
|
||||
//) {
|
||||
// delete window.app._context.components[previousRouteName]
|
||||
//}
|
||||
const previousRouteName =
|
||||
this.$router.currentRoute.value.meta.previousRouteName
|
||||
if (
|
||||
previousRouteName &&
|
||||
window.app._context.components[previousRouteName]
|
||||
) {
|
||||
delete window.app._context.components[previousRouteName]
|
||||
}
|
||||
|
||||
//load component logic
|
||||
const logicKey = `${this.$route.name}PageLogic`
|
||||
@ -94,13 +94,7 @@ const DynamicComponent = {
|
||||
template: html // Use the fetched HTML as the template
|
||||
})
|
||||
delete window[logicKey] //dont need this anymore
|
||||
console.log(
|
||||
`Component '${this.$route.name}' loaded. Keys: ${this.keys}`
|
||||
)
|
||||
if (!this.keys.includes(this.$route.name)) {
|
||||
this.keys.push(this.$route.name)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error loading dynamic content:', error)
|
||||
} finally {
|
||||
|
Loading…
x
Reference in New Issue
Block a user