修复打字机BUG
This commit is contained in:
parent
2711c2b81b
commit
bd6ac022c7
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
|||||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站课程评分系统</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.f10e6fc3.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.6baf1172.css" rel="stylesheet"></head><body><noscript><strong>本系统需要JavaScript支持,请启用JavaScript后继续。</strong></noscript><div id="app"></div></body></html>
|
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站课程评分系统</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.926aef76.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.fc3e06db.css" rel="stylesheet"></head><body><noscript><strong>本系统需要JavaScript支持,请启用JavaScript后继续。</strong></noscript><div id="app"></div></body></html>
|
||||||
File diff suppressed because one or more lines are too long
@ -319,6 +319,11 @@ export default {
|
|||||||
console.error('Error loading course data:', error);
|
console.error('Error loading course data:', error);
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
if (this.aiSummary) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.typewriterEffect(this.aiSummary);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -448,7 +453,6 @@ export default {
|
|||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
if (result.summary) {
|
if (result.summary) {
|
||||||
this.aiSummary = result.summary;
|
this.aiSummary = result.summary;
|
||||||
await this.typewriterEffect(this.aiSummary);
|
|
||||||
} else {
|
} else {
|
||||||
this.displayedSummary = '当前课程的评分和评论数据过少,暂不能生成AI总结。';
|
this.displayedSummary = '当前课程的评分和评论数据过少,暂不能生成AI总结。';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user