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