diff --git a/src/api/base.ts b/src/api/base.ts index 1994fcf..d5523bf 100644 --- a/src/api/base.ts +++ b/src/api/base.ts @@ -25,6 +25,8 @@ axios.interceptors.response.use((response)=>{ } return response; },(error)=>{ + login[0](); + login.splice(0,1); message.error(error.response.data.message) return Promise.reject(error) }) diff --git a/src/api/index.ts b/src/api/index.ts index acb02e0..1b80077 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -792,4 +792,20 @@ export async function register(data: any){ message.error(res.msg) return false; } +} + +/** + * 拒绝学生直播 + * + */ + +export async function refusedtolive(signupid: number, msg: string){ + const res = await get("refusedToLive",{signupid, msg}) + if(res.code == 0){ + message.success(res.msg) + return true; + }else{ + message.error(res.msg) + return false; + } } \ No newline at end of file diff --git a/src/components/LiveCount.vue b/src/components/LiveCount.vue index b0e441b..075dcb2 100644 --- a/src/components/LiveCount.vue +++ b/src/components/LiveCount.vue @@ -7,26 +7,54 @@
- -
-
{{ i.name }}
-
{{ i.interest }}
-
+ +
+
{{ i.name }}
+
{{ i.interest }}
+
- 参加时长 -
30min
+ 参加时长 +
30min
- 取消直播 + 取消直播
已拒绝
+