Skip to content

Commit 48abf71

Browse files
fix: Fixed the issue with incorrect routing for quick jump during app… (#7916)
1 parent 736200b commit 48abf71

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

agent/app/service/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func (f *FileService) ReadLogByLine(req request.FileReadByLineReq) (*response.Fi
466466
if req.TaskID != "" {
467467
opts = append(opts, taskRepo.WithByID(req.TaskID))
468468
} else {
469-
opts = append(opts, repo.WithByType(req.TaskType), taskRepo.WithOperate(req.TaskOperate), taskRepo.WithResourceID(req.ID))
469+
opts = append(opts, repo.WithByType(req.TaskType), taskRepo.WithOperate(req.TaskOperate), taskRepo.WithResourceID(req.ResourceID))
470470
}
471471
taskModel, err := taskRepo.GetFirst(opts...)
472472
if err != nil {

frontend/src/routers/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ router.beforeEach((to, from, next) => {
3939
return;
4040
}
4141

42+
if (to.path === '/apps/all' && to.query.install != undefined) {
43+
return next();
44+
}
45+
4246
const activeMenuKey = 'cachedRoute' + (to.meta.activeMenu || '');
4347
const cachedRoute = localStorage.getItem(activeMenuKey);
44-
4548
if (
4649
to.meta.activeMenu &&
4750
to.meta.activeMenu != from.meta.activeMenu &&

0 commit comments

Comments
 (0)