Keep both apps and appstore views alive in vue to avoid frequent reloading
This commit is contained in:
@@ -354,10 +354,12 @@ onMounted(async () => {
|
||||
<Headerbar :config="config" :subscription="subscription"/>
|
||||
|
||||
<div style="display: flex; justify-content: center; overflow: auto; flex-grow: 1; padding: 0; margin: 0 10px; position: relative;">
|
||||
<AppsView v-if="view === VIEWS.APPS" />
|
||||
<AppConfigureView v-else-if="view === VIEWS.APP" />
|
||||
<KeepAlive>
|
||||
<AppsView v-if="view === VIEWS.APPS" />
|
||||
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
|
||||
</KeepAlive>
|
||||
<AppConfigureView v-if="view === VIEWS.APP" />
|
||||
<AppearanceView v-else-if="view === VIEWS.APPEARANCE" />
|
||||
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
|
||||
<BackupSitesView v-else-if="view === VIEWS.BACKUP_SITES" />
|
||||
<BackupListView v-else-if="view === VIEWS.BACKUP_LIST" />
|
||||
<BackupAppArchiveView v-else-if="view === VIEWS.BACKUP_APP_ARCHIVE" />
|
||||
|
||||
Reference in New Issue
Block a user