Merge commit 'ea5f31acffc6466a035d1b2cf41d0ec93d7e8512' into feature/20250123_cl_motion
This commit is contained in:
@@ -18,9 +18,10 @@ const pageDataStore = usePageDataStore()
|
||||
const { getCwmsArticle } = useCwmsArticle()
|
||||
const { locale } = useI18n()
|
||||
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const { urlJson } = storeToRefs(gameDataStore)
|
||||
const { pageData } = storeToRefs(pageDataStore)
|
||||
|
||||
const communityUrl = computed(() => urlJson.value?.community)
|
||||
const boardId = computed(
|
||||
() => getComponentGroup(props.components, 'boardId')?.display?.text
|
||||
)
|
||||
@@ -101,11 +102,10 @@ const splideOptions = computed(() => {
|
||||
})
|
||||
|
||||
const getArticleUrl = (articleId: string) => {
|
||||
const communityUrl = gameData.value?.url_json?.community
|
||||
if (!communityUrl || !articleId || !boardId.value) {
|
||||
if (!communityUrl.value || !articleId || !boardId.value) {
|
||||
return ''
|
||||
}
|
||||
return `${communityUrl}/view/${articleId}`
|
||||
return `${communityUrl.value}/view/${articleId}`
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user