fix
This commit is contained in:
parent
4794951b81
commit
d4e6aa0bbe
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div class="bsky_comment" v-if="cid_root">
|
||||
<span v-for="i in api_json.data" class="comment">
|
||||
<span v-for="i in api_json_record" class="comment">
|
||||
<p class="comment-body" v-if="i.cid_root == cid_root">
|
||||
<span v-if="i.did.replace('did:plc:', '') != ''">
|
||||
{{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }}
|
||||
</span>
|
||||
<span v-if="url_check == true && i.did.replace('did:plc:', '') != ''">
|
||||
<img :src="'/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/>
|
||||
<img :src="'https://git.syui.ai/ai/comment/raw/branch/main/public/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/>
|
||||
</span>
|
||||
<span v-else-if="i.avatar">
|
||||
<img :src="i.avatar" class="comment"/>
|
||||
@ -56,6 +56,7 @@ export default {
|
||||
bsky_json: null,
|
||||
api_url: null,
|
||||
api_json: null,
|
||||
api_json_record: null,
|
||||
cid_root: null,
|
||||
uri_root: null,
|
||||
comment_open: false,
|
||||
@ -107,6 +108,7 @@ export default {
|
||||
response => {this.api_json = response
|
||||
this.cid_root = this.api_json.data.find((v) => v.blog_url == loc).cid;
|
||||
this.uri_root = this.api_json.data.find((v) => v.blog_url == loc).uri;
|
||||
this.api_json_record = this.api_json.data.filter((v) => v.cid_root == this.cid_root);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user