【修复】证书颁发机构跳转问题

This commit is contained in:
chudong
2025-05-23 21:51:49 +08:00
parent 52e853aab4
commit d5369d384f
50 changed files with 3494 additions and 2236 deletions

View File

@@ -1,4 +1,4 @@
import { defineComponent, PropType, VNode } from 'vue'
import { defineComponent, VNode } from 'vue'
import { NButton, NFormItemGi, NGrid, NSelect, NText, NSpin, NFlex } from 'naive-ui'
// 类型导入
@@ -126,7 +126,7 @@ export default defineComponent<CAProviderSelectProps>({
return (
<div
class="flex items-center cursor-pointer hover:text-[#333] hover:bg-[#eee]"
onClick={goToAddCAProvider}
onClick={() => goToAddCAProvider('addCAForm')}
>
{$t('t_0_1747990626044')}
</div>
@@ -139,7 +139,7 @@ export default defineComponent<CAProviderSelectProps>({
/>
</NFormItemGi>
<NFormItemGi span={11}>
<NButton class="mx-[8px]" onClick={goToAddCAProvider} disabled={props.disabled}>
<NButton class="mx-[8px]" onClick={()=>goToAddCAProvider('caManage')} disabled={props.disabled}>
{$t('t_0_1747903670020')}
</NButton>
<NButton

View File

@@ -32,8 +32,8 @@ export function useCAProviderSelectController(props: CAProviderSelectProps, emit
* @function goToAddCAProvider
* @description 跳转到CA授权管理页面
*/
const goToAddCAProvider = () => {
window.open('http://localhost:5173/auto-deploy', '_blank')
const goToAddCAProvider = (type: string) => {
window.open(`/auto-deploy?type=${type}`, '_blank')
}
/**

View File

@@ -2,7 +2,7 @@ import { defineComponent, PropType } from 'vue'
import { NTag } from 'naive-ui'
// 类型导入
import type { AuthApiTypeIconProps } from './types.d'
import type { AuthApiTypeIconProps } from './types'
// 绝对路径内部导入 - 组件
import SvgIcon from '@components/SvgIcon' // 请确保此路径 @components/SvgIcon 是正确的