質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,6 +46,10 @@
|
|
46
46
|
|
47
47
|
```typescript
|
48
48
|
|
49
|
+
//main.ts
|
50
|
+
|
51
|
+
|
52
|
+
|
49
53
|
import Vue from 'vue';
|
50
54
|
|
51
55
|
import VueRouter from 'vue-router'
|
@@ -92,30 +96,30 @@
|
|
92
96
|
|
93
97
|
data: {
|
94
98
|
|
99
|
+
test: "test"
|
100
|
+
|
101
|
+
},
|
102
|
+
|
103
|
+
mounted: function (): void {
|
104
|
+
|
95
105
|
|
96
106
|
|
97
107
|
},
|
98
108
|
|
109
|
+
methods: {
|
110
|
+
|
99
|
-
m
|
111
|
+
send_message: function (): void {
|
112
|
+
|
113
|
+
this.$refs.send_message_ref.send_message(1,2,3,4)
|
114
|
+
|
115
|
+
},
|
100
116
|
|
101
117
|
|
102
118
|
|
119
|
+
|
120
|
+
|
103
121
|
},
|
104
122
|
|
105
|
-
methods: {
|
106
|
-
|
107
|
-
send_message: function (): void {
|
108
|
-
|
109
|
-
this.$refs.send_message_ref.send_message(1,2,3,4)
|
110
|
-
|
111
|
-
},
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
},
|
118
|
-
|
119
123
|
components: {
|
120
124
|
|
121
125
|
'send_message': send_message
|
@@ -160,8 +164,14 @@
|
|
160
164
|
|
161
165
|
|
162
166
|
|
167
|
+
import main from "../ts/main";
|
168
|
+
|
169
|
+
|
170
|
+
|
163
171
|
export default {
|
164
172
|
|
173
|
+
mixins: [main],
|
174
|
+
|
165
175
|
data: function() {
|
166
176
|
|
167
177
|
return {
|
@@ -174,6 +184,12 @@
|
|
174
184
|
|
175
185
|
},
|
176
186
|
|
187
|
+
mounted: function(){
|
188
|
+
|
189
|
+
console.log(this.test)
|
190
|
+
|
191
|
+
},
|
192
|
+
|
177
193
|
props: [],
|
178
194
|
|
179
195
|
methods: {
|