mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-12 04:16:52 +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 || '保存题词内容失败')
|
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) {
|
} catch (error) {
|
||||||
this.$message.error('保存题词内容失败: ' + error.message)
|
this.$message.error('保存题词内容失败: ' + error.message)
|
||||||
throw error
|
throw error
|
||||||
@@ -231,6 +233,7 @@ export default {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@@ -248,18 +251,22 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tips {
|
.tips {
|
||||||
color: #9e9e9e;
|
color: #9e9e9e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
border: 1px solid #409eff;
|
border: 1px solid #409eff;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user