没有添加课程时显示文字提示

This commit is contained in:
ember 2025-02-06 12:40:23 +08:00
parent c7256a78c8
commit 1a2146a30b
5 changed files with 16 additions and 4 deletions

1
dist/css/app.71273cfc.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1 +1 @@
<!doctype html><html lang=""><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小站课程评分系统 - v1.1</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.d80a75c0.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.ea7f4455.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but myproject doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><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小站课程评分系统 - v1.1</title><script defer="defer" src="/js/chunk-vendors.3aa9144b.js"></script><script defer="defer" src="/js/app.a62829f1.js"></script><link href="/css/chunk-vendors.f2db5e15.css" rel="stylesheet"><link href="/css/app.71273cfc.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but myproject doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,11 @@
加载中请稍后...
</div>
<!-- 无课程记录时的提示 -->
<div v-else-if="submissions.length === 0" class="empty-message">
您还没有添加任何课程
</div>
<!-- 课程投稿记录表格 -->
<div v-else class="course-table">
<table>
@ -610,5 +615,12 @@ async submitCourse() {
color: navy; /* 点击时颜色变化 */
}
.empty-message {
text-align: center;
padding: 20px;
color: #666;
font-size: 16px;
}
</style>