diff --git a/open-isle-cli/src/components/BaseTimeline.vue b/open-isle-cli/src/components/BaseTimeline.vue index e12527fab..143881690 100644 --- a/open-isle-cli/src/components/BaseTimeline.vue +++ b/open-isle-cli/src/components/BaseTimeline.vue @@ -40,7 +40,7 @@ export default { width: 32px; height: 32px; border-radius: 50%; - color: var(--text-color); + color: white; display: flex; justify-content: center; align-items: center; diff --git a/open-isle-cli/src/main.js b/open-isle-cli/src/main.js index b385c02d7..c16bb75cf 100644 --- a/open-isle-cli/src/main.js +++ b/open-isle-cli/src/main.js @@ -9,11 +9,11 @@ import { checkToken, clearToken } from './utils/auth' import { initTheme } from './utils/theme' // Configurable API domain and port -// export const API_DOMAIN = 'http://127.0.0.1' -// export const API_PORT = 8081 +export const API_DOMAIN = 'http://127.0.0.1' +export const API_PORT = 8081 -export const API_DOMAIN = 'http://129.204.254.110' -export const API_PORT = 8080 +// export const API_DOMAIN = 'http://129.204.254.110' +// export const API_PORT = 8080 export const API_BASE_URL = API_PORT ? `${API_DOMAIN}:${API_PORT}` : API_DOMAIN export const GOOGLE_CLIENT_ID = '777830451304-nt8afkkap18gui4f9entcha99unal744.apps.googleusercontent.com' diff --git a/open-isle-cli/src/views/PostPageView.vue b/open-isle-cli/src/views/PostPageView.vue index e555c0a85..51063c9a8 100644 --- a/open-isle-cli/src/views/PostPageView.vue +++ b/open-isle-cli/src/views/PostPageView.vue @@ -13,7 +13,7 @@
-
+
avatar
@@ -102,6 +102,7 @@ import { renderMarkdown } from '../utils/markdown' import { API_BASE_URL, toast } from '../main' import { getToken } from '../utils/auth' import { hatch } from 'ldrs' +import { useRouter } from 'vue-router' hatch.register() export default { @@ -110,6 +111,7 @@ export default { setup() { const route = useRoute() const postId = route.params.id + const router = useRouter() const title = ref('') const author = ref('') @@ -293,6 +295,10 @@ export default { } } + const gotoProfile = () => { + router.push(`/users/${author.value.id}`) + } + onMounted(async () => { const hash = location.hash const id = hash.startsWith('#comment-') ? hash.substring('#comment-'.length) : null @@ -322,7 +328,8 @@ export default { copyPostLink, renderMarkdown, isWaitingFetchingPost, - isWaitingPostingComment + isWaitingPostingComment, + gotoProfile } } } @@ -451,7 +458,9 @@ export default { border-bottom: 1px solid #e2e2e2; } -.user-avatar-container {} +.user-avatar-container { + cursor: pointer; +} .user-avatar-item { width: 50px; diff --git a/open-isle-cli/src/views/ProfileView.vue b/open-isle-cli/src/views/ProfileView.vue index 1f5d0b534..631de6a88 100644 --- a/open-isle-cli/src/views/ProfileView.vue +++ b/open-isle-cli/src/views/ProfileView.vue @@ -66,7 +66,7 @@
热门回复
-
+