Commit 9cd16293 by Jaxon

fix: 修复datePicker 组件 初始化多次执行change的问题

1 parent 00ad8fdf
......@@ -111,7 +111,6 @@ export default {
leftCurrent: false,
rightCurrent: true,
innerVisible: false,
hasTypeInitialized: false,
};
},
computed: {
......@@ -148,7 +147,6 @@ export default {
},
watch: {
weekColumns: {
immediate: true,
deep: true,
handler() {
this.syncInnerValue();
......@@ -161,7 +159,6 @@ export default {
await this.getWeeklyData();
if (oldType === undefined) {
this.syncInnerValue();
this.hasTypeInitialized = true;
return;
}
if (newType === oldType)
......@@ -170,7 +167,6 @@ export default {
},
},
value: {
immediate: true,
deep: true,
handler() {
this.syncInnerValue();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!