OSDN Git Service

直接見ないように。怒られた。
authortkskjri05 <t.kujirai@nagatake.co.jp>
Thu, 29 Apr 2021 10:29:23 +0000 (19:29 +0900)
committertkskjri05 <t.kujirai@nagatake.co.jp>
Thu, 29 Apr 2021 10:29:23 +0000 (19:29 +0900)
src/components/snackBar.vue

index 28a408c..35727f0 100644 (file)
@@ -1,6 +1,6 @@
 <template>
   <div style="border-color:#FFFFFF">
-    <div id="snackbar">{{msg}}</div>
+    <div id="snackbar">{{msgValue}}</div>
   </div>
 </template>
 
@@ -13,13 +13,14 @@ export default {
   },
   components: {
   },
-  beforeMount() {
+  created() {
+    this.msgValue = this.msg
   },
   computed: {
   },
   methods: {
     setMessageAndshow(message) {
-      this.msg = message
+      this.msgValue = message
       this.show()
     },
     show() {
@@ -30,6 +31,7 @@ export default {
   },
   data() {
     return {
+      msgValue: '',
     }
   },
 }