瀏覽代碼

优化节假日

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) == '{}') {