Skip to content

Commit 1ae3198

Browse files
fix: clear stream configuration when closing website creation page (#11400)
1 parent a6c172b commit 1ae3198

File tree

1 file changed

+5
-1
lines changed
  • frontend/src/views/website/website/create

1 file changed

+5
-1
lines changed

frontend/src/views/website/website/create/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,9 @@ const WebsiteTypes = getWebsiteTypes();
579579
const installFormRef = ref();
580580
const lbFormRef = ref();
581581
const versionNotMatch = ref();
582-
const steamConfig = ref({
582+
const initLbForm = () => ({
583583
name: '',
584+
type: 'stream',
584585
algorithm: 'default',
585586
servers: [
586587
{
@@ -594,6 +595,7 @@ const steamConfig = ref({
594595
},
595596
],
596597
});
598+
const steamConfig = ref(initLbForm());
597599
598600
const handleClose = () => {
599601
open.value = false;
@@ -745,6 +747,8 @@ const acceptParams = async (openrestyVersion: string) => {
745747
runtimeReq.value = initRuntimeReq();
746748
listAcmeAccount();
747749
750+
steamConfig.value = initLbForm();
751+
748752
open.value = true;
749753
};
750754

0 commit comments

Comments
 (0)