mirror of
https://github.com/mindskip/xzs-mysql.git
synced 2026-08-28 11:07:50 +08:00
合并拉取请求 #504
.4062073974432528:0f24200cdb8be0095416b6e7e86a9fe3_69eb2ffca3c75e7cbf955b5e.69ec20a8a3c75e7cbf955e58.69ec20a7ac8e7345a8a578b4:Trae CN.T(2026/4/25 10:02:16)
This commit is contained in:
@@ -54,7 +54,8 @@ export default {
|
||||
listLoading: true,
|
||||
subjectList: [],
|
||||
tableData: [],
|
||||
total: 0
|
||||
total: 0,
|
||||
favoriteVersion: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -62,6 +63,7 @@ export default {
|
||||
paperTypeEnum: state => state.exam.examPaper.paperTypeEnum
|
||||
}),
|
||||
sortedTableData () {
|
||||
this.favoriteVersion
|
||||
return sortByFavorite(this.tableData)
|
||||
}
|
||||
},
|
||||
@@ -105,6 +107,7 @@ export default {
|
||||
subjectId: row.subjectId
|
||||
})
|
||||
if (result) {
|
||||
this.favoriteVersion++
|
||||
this.$message({
|
||||
message: this.isPaperFavorite(row.id) ? '收藏成功' : '已取消收藏',
|
||||
type: 'success',
|
||||
|
||||
Reference in New Issue
Block a user