mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Better share template
This commit is contained in:
parent
b665906196
commit
39256a1c13
2 changed files with 6 additions and 4 deletions
|
@ -28,9 +28,10 @@ export default Vue.extend({
|
|||
computed: {
|
||||
template(): string {
|
||||
let t = '';
|
||||
if (this.title) t += `【${title}】\n`;
|
||||
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.url) t += `${url}`;
|
||||
if (!this.title && this.url) t += `${url}`;
|
||||
return t.trim();
|
||||
}
|
||||
},
|
||||
|
|
|
@ -28,9 +28,10 @@ export default Vue.extend({
|
|||
computed: {
|
||||
template(): string {
|
||||
let t = '';
|
||||
if (this.title) t += `【${title}】\n`;
|
||||
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.url) t += `${url}`;
|
||||
if (!this.title && this.url) t += `${url}`;
|
||||
return t.trim();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue