perf: http方式校验,选择sftp时,支持修改文件访问权限比如777

This commit is contained in:
xiaojunnuo
2025-01-20 23:29:03 +08:00
parent ae5dfc3bee
commit 15d6eaf553
9 changed files with 112 additions and 16 deletions
@@ -30,7 +30,7 @@
</template>
<script lang="ts" setup>
import { Ref, ref, watch } from "vue";
import { Ref, ref, watch, nextTick } from "vue";
import { HttpRecord } from "/@/components/plugins/cert/domains-verify-plan-editor/type";
import { dict } from "@fast-crud/fast-crud";
@@ -62,18 +62,20 @@ watch(
}
);
function onRecordChange() {
async function onRecordChange() {
await nextTick();
emit("update:modelValue", records.value);
emit("change", records.value);
}
const uploaderTypeDict = dict({
data: [
{ label: "SFTP/SSH", value: "ssh" },
{ label: "SFTP", value: "sftp" },
{ label: "FTP", value: "ftp" },
{ label: "阿里云OSS", value: "alioss" },
{ label: "腾讯云COS", value: "tencentcos" },
{ label: "七牛OSS", value: "qiniuoss" }
{ label: "七牛OSS", value: "qiniuoss" },
{ label: "SSH(已废弃,请选择SFTP方式)", value: "ssh", disabled: true }
]
});
</script>
@@ -5,10 +5,10 @@ import { SshAccess, SshClient } from '@certd/plugin-lib';
@IsTaskPlugin({
name: 'uploadCertToHost',
title: '主机-部署证书到主机',
title: '主机-部署证书到SSH主机',
icon: 'line-md:uploading-loop',
group: pluginGroups.host.key,
desc: '上传证书到主机,然后执行部署脚本命令',
desc: 'SFTP上传证书到主机,然后SSH执行部署脚本命令',
default: {
strategy: {
runStrategy: RunStrategy.SkipWhenSucceed,