|
@@ -65,10 +65,12 @@ export default defineComponent({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- const active = await request.post(
|
|
|
- `/api-teacher/open/activity/state/${this.activityId}`
|
|
|
- )
|
|
|
- this.discount = active.data.check || 0
|
|
|
+ if (this.activityId) {
|
|
|
+ const active = await request.post(
|
|
|
+ `/api-teacher/open/activity/state/${this.activityId}`
|
|
|
+ )
|
|
|
+ this.discount = active.data.check || 0
|
|
|
+ }
|
|
|
} catch {
|
|
|
//
|
|
|
}
|