|
@@ -69,7 +69,7 @@ export default defineComponent({
|
|
|
return
|
|
|
}
|
|
|
if (!item.hasCache) {
|
|
|
- if (browserInfo.isStudent || /(192|localhost)/.test(location.origin)) {
|
|
|
+ if (browserInfo.isStudent || route.query.isdev) {
|
|
|
try {
|
|
|
await showConfirmDialog({
|
|
|
message: '当前课程没有缓存是否缓存'
|
|
@@ -79,7 +79,6 @@ export default defineComponent({
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- item.downloadStatus = 1
|
|
|
downCatch(item)
|
|
|
return
|
|
|
}
|
|
@@ -189,6 +188,8 @@ export default defineComponent({
|
|
|
<div class={styles.num}>下载中 {item.progress || 0}%</div>
|
|
|
) : item.downloadStatus === 2 ? (
|
|
|
<div class={styles.num}>下载成功</div>
|
|
|
+ ) : item.downloadStatus === 3 ? (
|
|
|
+ <div class={styles.num}>重新下载</div>
|
|
|
) : (
|
|
|
<div class={styles.num}>下载</div>
|
|
|
)}
|