生成pdf文件和中文字体问题
This commit is contained in:
parent
d09a810903
commit
836b38c4b8
BIN
output/试考者2_2_20250907.pdf
Normal file
BIN
output/试考者2_2_20250907.pdf
Normal file
Binary file not shown.
BIN
output/试考者5_5_20250908062131.pdf
Normal file
BIN
output/试考者5_5_20250908062131.pdf
Normal file
Binary file not shown.
BIN
output/试考者6_6_20250908061538.pdf
Normal file
BIN
output/试考者6_6_20250908061538.pdf
Normal file
Binary file not shown.
BIN
output/试考者7_7_20250908060404.pdf
Normal file
BIN
output/试考者7_7_20250908060404.pdf
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -276,9 +276,9 @@ export default {
|
||||
|
||||
if (result && result.success) {
|
||||
// 更新store中的试卷信息
|
||||
if (result.data) {
|
||||
this.$store.commit('setPaper', result.data)
|
||||
}
|
||||
// if (result.data) {
|
||||
// this.$store.commit('setPaper', result.data)
|
||||
// }
|
||||
this.$message.success('判卷完成!');
|
||||
} else {
|
||||
console.error('判卷失败:', result?.message || '未知错误');
|
||||
|
@ -324,9 +324,9 @@ export default {
|
||||
// 如果无法获取试卷信息,创建一个默认的试卷对象以避免页面白屏
|
||||
this.$store.commit('setPaper', {
|
||||
id: paperId,
|
||||
paper_score: 100,
|
||||
paper_minutes: 120,
|
||||
paper_minutes_min: 60
|
||||
paper_score: 0,
|
||||
paper_minutes: 0,
|
||||
paper_minutes_min: 0
|
||||
})
|
||||
this.canSubmit = false
|
||||
}
|
||||
@ -335,9 +335,9 @@ export default {
|
||||
// 错误情况下也创建一个默认的试卷对象
|
||||
this.$store.commit('setPaper', {
|
||||
id: paperId,
|
||||
paper_score: 100,
|
||||
paper_minutes: 120,
|
||||
paper_minutes_min: 60
|
||||
paper_score: 0,
|
||||
paper_minutes: 0,
|
||||
paper_minutes_min: 0
|
||||
})
|
||||
this.canSubmit = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user