mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-11 11:56:51 +08:00
refactor(knowledge): 修改知识详情页面创建组件
- 将 visible 数据属性的初始值设为 false - 移除了未使用的 console.log 和注释代码 -优化了表单提交逻辑,根据 radio 值决定是否返回上一页
This commit is contained in:
@@ -50,7 +50,7 @@ export default {
|
|||||||
name: 'create',
|
name: 'create',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: true,
|
visible: false,
|
||||||
active: 0,
|
active: 0,
|
||||||
documentId: '1362161577009188864'
|
documentId: '1362161577009188864'
|
||||||
}
|
}
|
||||||
@@ -74,12 +74,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getForm(form) {
|
getForm(form) {
|
||||||
console.log(form)
|
|
||||||
// if (form.beMinerU) {
|
|
||||||
// this.beMinerU()
|
|
||||||
// } else {
|
|
||||||
// this.saveMarkDown()
|
|
||||||
// }
|
|
||||||
if (form.radio === '2') {
|
if (form.radio === '2') {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
sessionStorage.setItem('documentId', this.documentId)
|
sessionStorage.setItem('documentId', this.documentId)
|
||||||
|
|||||||
Reference in New Issue
Block a user