mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 19:06:49 +08:00
feat: 修复界面异常跳转的原因
1. 使用 `router.push` 替代 `router.go(-1)` 的方式
This commit is contained in:
@@ -189,7 +189,9 @@ export default {
|
||||
throw new Error(res.content.resultMessage || '保存题词内容失败')
|
||||
}
|
||||
|
||||
this.$router.go(-1)
|
||||
// 使用 push 的方式返回,防止出现页面异常跳转的问题
|
||||
// this.$router.go(-1)
|
||||
this.$router.push({ path: '/knowledge/detail', query: { ...this.$route.query } })
|
||||
} catch (error) {
|
||||
this.$message.error('保存题词内容失败: ' + error.message)
|
||||
throw error
|
||||
@@ -231,6 +233,7 @@ export default {
|
||||
margin: 10px 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 10px;
|
||||
@@ -248,18 +251,22 @@ export default {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.block {
|
||||
margin-left: 20px;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 20px;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.tips {
|
||||
color: #9e9e9e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
border: 1px solid #409eff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user