ソースを参照

Update choice-coupon.tsx

lex 2 年 前
コミット
1727098181
1 ファイル変更2 行追加4 行削除
  1. 2 4
      src/views/order-detail/use-coupons/choice-coupon.tsx

+ 2 - 4
src/views/order-detail/use-coupons/choice-coupon.tsx

@@ -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,