Skip to content
Merged

fix #108

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/community/detail/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,6 @@
<vTooltips v-if="isEditDisabled" :tips="'请去网页端编辑'">
<div
class="px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-not-allowed opacity-50 select-none"
role="button"
aria-disabled="true"
>
{{ t('community.detail.edit') }}
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/components/community/modules/ModelCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@
() => props.model?.versions?.[0]?.cover_urls,
newUrls => {
if (newUrls && Array.isArray(newUrls) && newUrls.length > 0) {
const timestamp = new Date().getTime()
const url = newUrls[0]
imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
// const timestamp = new Date().getTime()
// const url = newUrls[0]
// imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
imgSrc.value = newUrls[0]
}
}
)
Expand All @@ -85,9 +86,10 @@
isServerMode.value = await serverModeStore.setIsServerMode()
const coverUrls = props.model?.versions?.[0]?.cover_urls
if (coverUrls && Array.isArray(coverUrls) && coverUrls.length > 0) {
const timestamp = new Date().getTime()
const url = coverUrls[0]
imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
// const timestamp = new Date().getTime()
// const url = coverUrls[0]
// imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
imgSrc.value = coverUrls[0]
}
})

Expand Down
14 changes: 8 additions & 6 deletions src/components/model-select/modules/ModelCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,21 @@
() => props.model?.versions?.[0]?.cover_urls,
newUrls => {
if (newUrls && Array.isArray(newUrls) && newUrls.length > 0) {
const timestamp = new Date().getTime()
const url = newUrls[0]
imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
// const timestamp = new Date().getTime()
// const url = newUrls[0]
// imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
imgSrc.value = newUrls[0]
}
}
)

onMounted(async () => {
const coverUrls = props.model?.versions?.[0]?.cover_urls
if (coverUrls && Array.isArray(coverUrls) && coverUrls.length > 0) {
const timestamp = new Date().getTime()
const url = coverUrls[0]
imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
// const timestamp = new Date().getTime()
// const url = coverUrls[0]
// imgSrc.value = url.includes('?') ? `${url}&t=${timestamp}` : `${url}?t=${timestamp}`
imgSrc.value = coverUrls[0]
}
})
</script>
Expand Down
2 changes: 0 additions & 2 deletions src/utils/languageSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class LanguageSwitcher {
// 触发语言变更回调
this.triggerCallbacks(previousLanguage, this.currentLanguage)

console.log(`语言已切换为: ${this.currentLanguage}`)
return {
success: true,
previousLanguage: previousLanguage,
Expand Down Expand Up @@ -141,7 +140,6 @@ class LanguageSwitcher {
// 触发语言变更回调
this.triggerCallbacks(previousLanguage, this.currentLanguage)

console.log(`语言已切换为: ${this.currentLanguage} (仅前端)`)
return {
success: true,
previousLanguage: previousLanguage,
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.42
1.2.43
Loading