|
|
|
|
|
|
|
|
var tagArray = []; |
|
|
var tagArray = []; |
|
|
const data=[ |
|
|
const data=[ |
|
|
'#th', |
|
|
|
|
|
'#efi', |
|
|
|
|
|
'#wichtig', |
|
|
|
|
|
|
|
|
'th', |
|
|
|
|
|
'efi', |
|
|
|
|
|
'wichtig', |
|
|
]; |
|
|
]; |
|
|
const CreateMsgRouter = { |
|
|
const CreateMsgRouter = { |
|
|
template: ` |
|
|
template: ` |
|
|
|
|
|
|
|
|
<b-button @click="$router.go(-1)">ABBRECHEN</b-button> |
|
|
<b-button @click="$router.go(-1)">ABBRECHEN</b-button> |
|
|
<b-button type="is-primary" @click="createMsg">SENDEN</b-button> |
|
|
<b-button type="is-primary" @click="createMsg">SENDEN</b-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
`, |
|
|
`, |
|
|
data: function () { |
|
|
data: function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_insert_tag(id){ |
|
|
function get_insert_tag(id){ |
|
|
$.ajax({ url: "api/tag/"+id, method: "GET" }).done(function (tag) { |
|
|
$.ajax({ url: "api/tag/"+id, method: "GET" }).done(function (tag) { |
|
|
data.push(tag.name); |
|
|
|
|
|
|
|
|
data.push("#"+tag.name); |
|
|
console.log("it worked!"); |
|
|
console.log("it worked!"); |
|
|
}).fail(function (e, f, g) { |
|
|
}).fail(function (e, f, g) { |
|
|
console.log("cannot load " + id + ".json: " + e + f + g); |
|
|
console.log("cannot load " + id + ".json: " + e + f + g); |