mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
【调整】免费证书申请
This commit is contained in:
@@ -284,11 +284,14 @@ export default defineComponent({
|
||||
|
||||
// 计算当前选中的邮箱选项的 value(用于 NSelect)
|
||||
const currentEmailValue = computed(() => {
|
||||
if (!param.value.eabId) return null;
|
||||
// 优先使用 eabId 来查找匹配的选项
|
||||
if (!param.value.eabId && !param.value.email) return null;
|
||||
|
||||
const matchedOption = emailOptions.value.find(
|
||||
(item) => item.id.toString() === param.value.eabId
|
||||
(item) =>
|
||||
(param.value.eabId && item.id.toString() === param.value.eabId) ||
|
||||
(param.value.email && item.email === param.value.email)
|
||||
);
|
||||
|
||||
return matchedOption ? matchedOption.value : null;
|
||||
});
|
||||
|
||||
@@ -652,7 +655,6 @@ export default defineComponent({
|
||||
// 确认事件触发
|
||||
confirm(async (close) => {
|
||||
try {
|
||||
console.log(123123123)
|
||||
await example.value?.validate();
|
||||
data.value.eabId = "";
|
||||
data.value.email = param.value.email;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useController } from './useController'
|
||||
import { useRouter } from 'vue-router';
|
||||
import { NTabs, NTabPane, NEmpty, NIcon } from 'naive-ui'
|
||||
import ProductCard from './components/ProductCard'
|
||||
import FreeProductCard from './components/FreeProductCard'
|
||||
@@ -23,7 +24,7 @@ export default defineComponent({
|
||||
formatPrice,
|
||||
handleOpenApplyModal,
|
||||
} = useController()
|
||||
|
||||
const router = useRouter();
|
||||
return () => (
|
||||
<div class="w-full max-w-[160rem] mx-auto p-[2rem]">
|
||||
<div class="bg-[var(--content-bg-base)] rounded-[0.6rem] p-[2.4rem] mb-[3rem]">
|
||||
@@ -78,11 +79,12 @@ export default defineComponent({
|
||||
</NTabs>
|
||||
)}
|
||||
{activeMainTab.value === 'free' && (
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
||||
{freeProducts.value.map((product) => (
|
||||
<FreeProductCard key={product.pid} product={product} onApply={handleOpenApplyModal} />
|
||||
))}
|
||||
</div>
|
||||
<div><span onClick={() => router.push("/auto-deploy")} class="cursor-pointer text-[var(--color-text-primary-success)] text-[14px]">请前往自动化部署创建工作流申请证书</span></div>
|
||||
// <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
||||
// {freeProducts.value.map((product) => (
|
||||
// <FreeProductCard key={product.pid} product={product} onApply={handleOpenApplyModal} />
|
||||
// ))}
|
||||
// </div>
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user