This is an automated email from the ASF dual-hosted git repository. zhongjiajie pushed a commit to branch 3.0.0-beta-prepare in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit 8a52958f368451a34c50bc9381eb12baff74fac7 Author: Devosend <[email protected]> AuthorDate: Sun May 22 14:02:56 2022 +0800 fix spcial week init bug (#10183) (cherry picked from commit d7d6699e22091896a9ea78c5a2e49c2a1f54a7e4) --- dolphinscheduler-ui/src/components/crontab/modules/day.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-ui/src/components/crontab/modules/day.tsx b/dolphinscheduler-ui/src/components/crontab/modules/day.tsx index b4dd16d1af..9c67ff9db3 100644 --- a/dolphinscheduler-ui/src/components/crontab/modules/day.tsx +++ b/dolphinscheduler-ui/src/components/crontab/modules/day.tsx @@ -62,7 +62,7 @@ export default defineComponent({ const intervalDayStartRef = ref(1) const intervalDayPerformRef = ref(1) const WkspecificDayRef = ref<Array<number>>([]) - const WkspecificWeekRef = ref<Array<number>>([]) + const WkspecificWeekRef = ref<Array<string>>([]) const monthLastDaysRef = ref('L') const monthLastWorkingDaysRef = ref('LW') const monthLastWeeksRef = ref('?') @@ -108,9 +108,7 @@ export default defineComponent({ } const hanleWeekTwo = () => { - WkspecificWeekRef.value = $weekVal - .split(',') - .map((item) => parseInt(item)) + WkspecificWeekRef.value = $weekVal.split(',') radioRef.value = 'WkspecificWeek' } @@ -244,7 +242,7 @@ export default defineComponent({ } // Specific day of the week (multiple choice) - const onWkspecificWeek = (arr: Array<number>) => { + const onWkspecificWeek = (arr: Array<string>) => { WkspecificWeekRef.value = arr if (radioRef.value === 'WkspecificWeek') { dayRef.value = '?'
