@@ -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 })
diff --git a/packages/ui/certd-ui/src/views/detail/index.vue b/packages/ui/certd-ui/src/views/detail/index.vue
index c326ba80..cefce70d 100644
--- a/packages/ui/certd-ui/src/views/detail/index.vue
+++ b/packages/ui/certd-ui/src/views/detail/index.vue
@@ -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)
}