|
12345678910111213141516171819202122232425262728293031 |
- const HomeRouter = {
- template: `
- <div id="om-msg-cards">
- <MsgCard
- v-for="id in messagelist"
- :key="id"
- :msg="messages[id] || {}"
- ></MsgCard>
- </div>`,
- data: function () {
- return {
- messagelist: _messagelist,
- messages: _messages,
- };
- },
- methods: {
- refresh_messages: function () {
- _messages.push({ //////// alt
- id: 42,
- subject: "xxx",
- message: "warum habt ihr auch so viel",
- user: "nobody",
- tags: "foo"
- });
- },
- },
-
- /*mounted: function() {
- this.refresh_messages();
- }*/
- };
|