Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/views/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/views/toolbox/ftp/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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 },
Expand Down Expand Up @@ -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,
Expand Down
Loading