fix: clear stream configuration when closing website creation page (#11400)

This commit is contained in:
CityFun 2025-12-19 15:27:03 +08:00 committed by GitHub
parent a6c172b1ab
commit 1ae3198b10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -579,8 +579,9 @@ const WebsiteTypes = getWebsiteTypes();
const installFormRef = ref();
const lbFormRef = ref();
const versionNotMatch = ref();
const steamConfig = ref({
const initLbForm = () => ({
name: '',
type: 'stream',
algorithm: 'default',
servers: [
{
@ -594,6 +595,7 @@ const steamConfig = ref({
},
],
});
const steamConfig = ref(initLbForm());
const handleClose = () => {
open.value = false;
@ -745,6 +747,8 @@ const acceptParams = async (openrestyVersion: string) => {
runtimeReq.value = initRuntimeReq();
listAcmeAccount();
steamConfig.value = initLbForm();
open.value = true;
};