This commit is contained in:
syuilo
2019-03-14 15:19:02 +09:00
parent b157e9535e
commit 75a8037a46
2 changed files with 8 additions and 4 deletions

View File

@ -28,10 +28,10 @@ export default Vue.extend({
computed: {
template(): string {
let t = '';
if (this.title && this.url) t += `【[${title}](${url})】\n`;
if (this.title && !this.url) t += `${title}\n`;
if (this.text) t += `${text}\n`;
if (!this.title && this.url) t += `${url}`;
if (this.title && this.url) t += `【[${this.title}](${this.url})】\n`;
if (this.title && !this.url) t += `${this.title}\n`;
if (this.text) t += `${this.text}\n`;
if (!this.title && this.url) t += `${this.url}`;
return t.trim();
}
},