fix(runtime): закрыть fix2 P0 runtime pass без legacy
This commit is contained in:
@@ -121,14 +121,6 @@
|
||||
<el-input v-model="configForm.remark" clearable />
|
||||
</el-form-item>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
:content="$t('hysteria.config.portHopping')"
|
||||
placement="bottom"
|
||||
>
|
||||
<el-form-item label="portHopping" prop="portHopping">
|
||||
<el-input v-model="configForm.portHopping" clearable />
|
||||
</el-form-item>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
:content="$t('hysteria.config.clashExtension')"
|
||||
placement="bottom"
|
||||
@@ -1089,7 +1081,6 @@ const { t } = useI18n();
|
||||
|
||||
const hysteria2EnableKey = "HYSTERIA2_ENABLE";
|
||||
const hysteria2Remark = "HYSTERIA2_CONFIG_REMARK";
|
||||
const hysteria2ConfigPortHopping = "HYSTERIA2_CONFIG_PORT_HOPPING";
|
||||
const clashExtension = "CLASH_EXTENSION";
|
||||
const dataFormRef = ref(ElForm);
|
||||
|
||||
@@ -1133,7 +1124,6 @@ const state = reactive({
|
||||
},
|
||||
configForm: {
|
||||
remark: "",
|
||||
portHopping: "",
|
||||
clashExtension: "",
|
||||
},
|
||||
dataForm: { ...defaultHysteria2ServerConfig } as Hysteria2ServerConfig,
|
||||
@@ -1292,7 +1282,6 @@ const handleExport = async () => {
|
||||
const handleReset = () => {
|
||||
state.configForm = {
|
||||
remark: "",
|
||||
portHopping: "",
|
||||
clashExtension: "",
|
||||
};
|
||||
state.dataForm = deepCopy(defaultHysteria2ServerConfig);
|
||||
@@ -1339,10 +1328,6 @@ const submitForm = () => {
|
||||
key: hysteria2Remark,
|
||||
value: state.configForm.remark,
|
||||
},
|
||||
{
|
||||
key: hysteria2ConfigPortHopping,
|
||||
value: state.configForm.portHopping,
|
||||
},
|
||||
{
|
||||
key: clashExtension,
|
||||
value: state.configForm.clashExtension,
|
||||
@@ -1479,7 +1464,6 @@ const setConfig = () => {
|
||||
keys: [
|
||||
hysteria2EnableKey,
|
||||
hysteria2Remark,
|
||||
hysteria2ConfigPortHopping,
|
||||
clashExtension,
|
||||
],
|
||||
}).then((response) => {
|
||||
@@ -1489,8 +1473,6 @@ const setConfig = () => {
|
||||
state.enableForm.enable = configVo.value;
|
||||
} else if (configVo.key === hysteria2Remark) {
|
||||
state.configForm.remark = configVo.value;
|
||||
} else if (configVo.key === hysteria2ConfigPortHopping) {
|
||||
state.configForm.portHopping = configVo.value;
|
||||
} else if (configVo.key === clashExtension) {
|
||||
state.configForm.clashExtension = configVo.value;
|
||||
}
|
||||
@@ -1624,5 +1606,3 @@ onMounted(() => {
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user