chore: Modify FTP account deletion prompt (#11873)

This commit is contained in:
ssongliu
2026-02-11 15:06:58 +08:00
committed by GitHub
parent 1725767789
commit 627e6852db
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -167,7 +167,7 @@
<el-carousel
class="my-carousel"
:class="{ 'no-indicator': carouselItemCount <= 1 }"
:key="simpleNodes.length"
:key="simpleNodes.length + carouselItemCount"
height="368px"
indicator-position=""
arrow="never"
+8 -2
View File
@@ -163,6 +163,7 @@ import LogDialog from '@/views/toolbox/ftp/log/index.vue';
import { Toolbox } from '@/api/interface/toolbox';
import { GlobalStore } from '@/store';
import { routerToFileWithPath } from '@/utils/router';
import { getRandomStr } from '@/utils/util';
const globalStore = GlobalStore();
@@ -263,7 +264,12 @@ const onChange = async (row: any) => {
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
};
const onOpenDialog = async (title: string, rowData: Partial<Toolbox.FtpInfo> = {}) => {
const onOpenDialog = async (
title: string,
rowData: Partial<Toolbox.FtpInfo> = {
password: getRandomStr(12),
},
) => {
let params = {
title,
rowData: { ...rowData },
@@ -306,7 +312,7 @@ const onDelete = async (row: Toolbox.FtpInfo | null) => {
title: i18n.global.t('commons.button.delete'),
names: names,
msg: i18n.global.t('commons.msg.operatorHelper', [
i18n.global.t('menu.cronjob'),
i18n.global.t('website.ftpUser'),
i18n.global.t('commons.button.delete'),
]),
api: null,