OSDN Git Service

spinnerに統一
authortkskjri05 <t.kujirai@nagatake.co.jp>
Mon, 3 May 2021 04:36:15 +0000 (13:36 +0900)
committertkskjri05 <t.kujirai@nagatake.co.jp>
Mon, 3 May 2021 04:36:15 +0000 (13:36 +0900)
src/components/todoApp.vue

index 4ff873f..6cb2fc3 100644 (file)
@@ -33,8 +33,7 @@
       </div>
       <div class="py-10 px-5 rounded-md shadow-lg">
         <div>Todo リスト</div>
-        <div v-if="loading()">Loading...</div>
-        <div v-else class="py-1" v-for="list in todo_list" :key="list.id">
+        <div class="py-1" v-for="list in todo_list" :key="list.id">
           <todo :data="list"
                 @onCheckChange="onCheckChange"
                 @onTextChange="onTextChange"
@@ -264,9 +263,9 @@ export default {
         this.$refs.spinner.close()
       })
     },
-    loading(){
-      return this.$apollo.queries.todo_list.loading
-    },
+    // loading(){
+    //   return this.$apollo.queries.todo_list.loading
+    // },
     getNowFormatted(){
       return this.formattedData()
     },