Commit 9cd16293 by Jaxon

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

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