Fixes switching back to wallet (#2937)

* tals fix

* switched border back

* make

* bundle
This commit is contained in:
Arc
2025-02-07 18:13:17 +00:00
committed by GitHub
parent 503a599341
commit 9d2e52f694
5 changed files with 11 additions and 22 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
-3
View File
@@ -532,9 +532,6 @@ video {
word-break: break-word;
}
.q-card {
border-radius: 10px;
}
.q-card code {
overflow-wrap: break-word;
}
+9 -16
View File
@@ -63,15 +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`
const componentLogic = window[logicKey]
@@ -94,13 +93,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()
}
this.$forceUpdate()
} catch (error) {
console.error('Error loading dynamic content:', error)
} finally {
-1
View File
@@ -207,7 +207,6 @@ video {
}
.q-card {
border-radius: 10px;
code {
overflow-wrap: break-word;
}