|
@@ -37,12 +37,10 @@ export default defineComponent({
|
|
|
},
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
+ if (this.dataLoading) return
|
|
|
this.dataLoading = true
|
|
|
try {
|
|
|
- // 判断是哪个端
|
|
|
- const url =
|
|
|
- state.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
|
|
|
- const res = await request.post(`${url}/couponInfo/page`, {
|
|
|
+ const res = await request.post(`${state.platformApi}/couponInfo/page`, {
|
|
|
data: {
|
|
|
useState: 'USABLE',
|
|
|
page: 1,
|