Skip to content

Commit

Permalink
解决创建plan页面数据不互通问题
Browse files Browse the repository at this point in the history
  • Loading branch information
checkma-xh committed Mar 12, 2024
1 parent 5d14c56 commit 21718d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Binary file removed database/database.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/GroupSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const select = ref();
const userStore = useUserStore();
const currentUser = userStore.currentUser;
const groups = ref();
const groupValue = defineModel("groupModel");
const groupValue = defineModel("groupValue");
const handleChange = defineModel("handleChange");
onMounted(async () => {
Expand Down
10 changes: 3 additions & 7 deletions src/views/planManagement/PlanEditPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
</ion-textarea>

<!-- 选择项 -->
<priority-select :priorityValue="priorityValue"></priority-select>
<group-select :groupValue="groupValue"></group-select>
<priority-select v-model:priorityValue="priorityValue"></priority-select>
<group-select v-model:groupValue="groupValue"></group-select>

<!-- 新建分组 -->
<ion-button
Expand Down Expand Up @@ -99,7 +99,7 @@ import {
IonRow,
IonCol,
} from "@ionic/vue";
import { onMounted, ref, watchEffect } from "vue";
import { onMounted, ref } from "vue";
import { useRoute } from "vue-router";
import GroupSelect from "@/components/GroupSelect.vue";
import PrioritySelect from "@/components/PrioritySelect.vue";
Expand All @@ -119,10 +119,6 @@ const repeatValue = ref();
onMounted(() => {
moduleName.value = matchModuleNameByRouteName(route.name as string);
});
watchEffect(() => {
alert(priorityValue.value);
})
</script>

<style scoped>
Expand Down

0 comments on commit 21718d2

Please sign in to comment.