소스 검색

优化节假日

1
mo 3 년 전
부모
커밋
3b6b1ef084
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/teamDetail/components/modals/classroom-setting.vue

+ 2 - 1
src/views/teamDetail/components/modals/classroom-setting.vue

@@ -287,7 +287,8 @@ export default {
         const res1 = await getSysTenantConfig({
           group: "holiday",
         });
-        this.holidays = JSON.parse(res1.data[0].paranValue);
+
+        this.holidays = JSON.parse(res1.data[0].paranValue?res1.data[0].paranValue:'[]');
         this.prices = res.data;
         let arr = [];
         if (JSON.stringify(this.prices) == '{}') {