feat(home): 新增首页布局和功能

- 添加了首页的顶部、中部和底部容器
- 实现了用户信息展示、快捷入口等功能
- 优化了样式,增加了响应式布局
This commit is contained in:
陈昱达
2025-05-12 10:49:23 +08:00
parent dd71e1c818
commit d9d710df1b
6 changed files with 185 additions and 19 deletions

View File

@@ -165,12 +165,21 @@ export default {
oneClickAction() {
this.$refs.stepPreProcessing.uploadFiled(e => {
if (e) {
directEmbedding({ documentId: e }).then(res => {
if (res) {
this.$message.success('处理成功')
this.$router.go(-1)
this.$router.push({
path: '/knowledge/reviewKnowledge',
query: {
documentId: e,
datasetId: this.$route.query.datasetId,
active: '0'
}
})
// directEmbedding({ documentId: e }).then(res => {
// if (res) {
// this.$message.success('处理成功')
// this.$router.go(-1)
// }
// })
} else {
this.$message.error('上传失败,请重试')
}
@@ -229,6 +238,11 @@ export default {
break
case '2':
case 2:
setTimeout(() => {
if (isMd) {
this.$refs.words.getExtractResultOperation(documentId)
}
}, 1000)
break
default:
break