1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

fix: Typo in hostname save function and button click (#7475)

This commit is contained in:
w940853815 2024-12-20 15:02:30 +08:00 committed by GitHub
parent d84f0b5597
commit a77ebd3eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@
<template #footer>
<span class="dialog-footer">
<el-button @click="drawerVisible = false">{{ $t('commons.button.cancel') }}</el-button>
<el-button :disabled="loading" type="primary" @click="onSaveHostame(formRef)">
<el-button :disabled="loading" type="primary" @click="onSaveHostname(formRef)">
{{ $t('commons.button.confirm') }}
</el-button>
</span>
@ -69,7 +69,7 @@ const acceptParams = (params: DialogProps): void => {
drawerVisible.value = true;
};
const onSaveHostame = async (formEl: FormInstance | undefined) => {
const onSaveHostname = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
formEl.validate(async (valid) => {
if (!valid) return;