fix: no page rendering issue after navigating from rest page (#2962)

This commit is contained in:
Anwarul Islam
2023-04-04 21:18:32 +06:00
committed by GitHub
parent c3c3fc6720
commit dd72eacd21
2 changed files with 56 additions and 55 deletions

View File

@@ -1185,7 +1185,7 @@ const onRemoveRequest = () => {
}) })
if (possibleTab) { if (possibleTab) {
possibleTab.value.document.saveContext = undefined possibleTab.value.document.saveContext = null
possibleTab.value.document.isDirty = true possibleTab.value.document.isDirty = true
} }
} }

View File

@@ -1,4 +1,5 @@
<template> <template>
<div>
<AppPaneLayout layout-id="http"> <AppPaneLayout layout-id="http">
<template #primary> <template #primary>
<HoppSmartWindows <HoppSmartWindows
@@ -30,7 +31,6 @@
{{ tab.document.request.name }} {{ tab.document.request.name }}
</span> </span>
</template> </template>
<HttpRequestTab <HttpRequestTab
:model-value="tab" :model-value="tab"
@update:model-value="onTabUpdate" @update:model-value="onTabUpdate"
@@ -54,6 +54,7 @@
:mode="'rest'" :mode="'rest'"
@hide-modal="onSaveModalClose" @hide-modal="onSaveModalClose"
/> />
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>