6262
6363<script lang="ts">
6464import store from " @/store" ;
65- import { difficulty , priority , repeatInterval } from " ./TodoList.vue" ;
65+ import { Difficulty , Priority , RepeatInterval } from " ./TodoList.vue" ;
6666import { defineComponent } from " vue" ;
6767
6868export interface todoTask {
@@ -90,10 +90,10 @@ export default defineComponent({
9090 return {
9191 task: " " ,
9292 dueDate: currentLocalDate .toISOString ().split (" T" )[0 ], // set default due date to today
93- priority: priority .Low , // set default priority is low
94- difficulty: difficulty .Easy , // set default difficulty is easy
93+ priority: Priority .Low , // set default priority is low
94+ difficulty: Difficulty .Easy , // set default difficulty is easy
9595 repeatEvery: 1 , // set default task repetition number to 1
96- repeatInterval: repeatInterval .Once , // set default task repetition interval to one-time
96+ repeatInterval: RepeatInterval .Once , // set default task repetition interval to one-time
9797 newId: 0 , // initial task id is 0
9898 completed: false , // task not completed if a task is created
9999 timesCompleted: 0 ,
@@ -117,10 +117,10 @@ export default defineComponent({
117117 this .newId ++ ;
118118 this .task = " " ;
119119 this .dueDate = currentLocalDate .toISOString ().split (" T" )[0 ];
120- this .priority = priority .Low ;
121- this .difficulty = difficulty .Easy ;
120+ this .priority = Priority .Low ;
121+ this .difficulty = Difficulty .Easy ;
122122 this .repeatEvery = 1 ;
123- this .repeatInterval = repeatInterval .Once ;
123+ this .repeatInterval = RepeatInterval .Once ;
124124 this .completed = false ;
125125 this .timesCompleted = 0 ;
126126 this .streak = 0 ;
0 commit comments