mirror of https://github.com/certd/certd
perf: ui 升级到antdv3.x
parent
4c31db427a
commit
6950d779e0
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/logo.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>antdv-fast-crud</title>
|
||||
<title>certd</title>
|
||||
<link rel="stylesheet" type="text/css" href="/index.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<div class="page-index flex-center">
|
||||
<H2 class="title">CERT-D</H2>
|
||||
<h2 class="title">CERT-D</h2>
|
||||
<div class="page-body">
|
||||
|
||||
<a-tabs @change="callback">
|
||||
<a-tabs >
|
||||
<a-tab-pane key="1" tab="创建新证书">
|
||||
<div class="create-from-domains">
|
||||
<div class="input-row flex-row">
|
||||
|
@ -51,11 +51,13 @@ export default {
|
|||
})
|
||||
const router = useRouter()
|
||||
const createFromDomain = () => {
|
||||
console.log("formData:",formData)
|
||||
goToDetail(JSON.stringify(formData))
|
||||
}
|
||||
|
||||
const goToDetail = (options) => {
|
||||
router.push({ name: 'detail', params: { options } })
|
||||
console.log("options:",options)
|
||||
router.push({ name: 'detail', state: { options } })
|
||||
}
|
||||
const autoSize = reactive({ minRows: 8, maxRows: 10 })
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ import { message } from 'ant-design-vue'
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
import { reactive, ref, toRef, toRefs, provide, readonly } from 'vue'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useRoute,useRouter } from 'vue-router'
|
||||
import CertForm from './components/cert-form.vue'
|
||||
import TaskForm from './components/task-form.vue'
|
||||
import exportsApi from '../../api/api.exports'
|
||||
|
@ -245,9 +245,8 @@ function useExports (options) {
|
|||
export default {
|
||||
components: { DContainer, CertForm, TaskForm },
|
||||
setup () {
|
||||
const route = useRoute()
|
||||
console.log('route', route)
|
||||
const optionParams = route.params.options ? JSON.parse(route.params.options) : {}
|
||||
const state = history.state
|
||||
const optionParams = state.options ? JSON.parse(state.options ) : {}
|
||||
if (optionParams.accessProviders) {
|
||||
optionParams.accessProviders = commonUtil.mapToArray(optionParams.accessProviders)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue