mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: clear stream configuration when closing website creation page (#11400)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user