Skip to content

Commit

Permalink
fix: 模板丢失
Browse files Browse the repository at this point in the history
fix: 时区不正确
  • Loading branch information
Kerwin committed Mar 25, 2023
1 parent 367dfd5 commit f54b7c7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ COPY --from=frontend /app/dist /app/public

COPY --from=backend /app/build /app/build

COPY --from=backend /app/src/utils/templates /app/build/templates

EXPOSE 3002

CMD ["sh", "-c", "./replace-title.sh && pnpm run prod"]
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ services:
depends_on:
- database
environment:
TZ: Asia/Shanghai
# one of two
OPENAI_API_KEY: xxxxxx
# one of two
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ services:
depends_on:
- database
environment:
TZ: Asia/Shanghai
# 二选一
OPENAI_API_KEY: sk-xxx
# 二选一
Expand Down
1 change: 1 addition & 0 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
depends_on:
- database
environment:
TZ: Asia/Shanghai
# 二选一
OPENAI_API_KEY: sk-xxx
# 二选一
Expand Down
2 changes: 2 additions & 0 deletions service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ router.get('/chat-hisroty', auth, async (req, res) => {
chats.forEach((c) => {
if (c.status !== Status.InversionDeleted) {
result.push({
uuid: c.uuid,
dateTime: new Date(c.dateTime).toLocaleString(),
text: c.prompt,
inversion: true,
Expand All @@ -119,6 +120,7 @@ router.get('/chat-hisroty', auth, async (req, res) => {
}
if (c.status !== Status.ResponseDeleted) {
result.push({
uuid: c.uuid,
dateTime: new Date(c.dateTime).toLocaleString(),
text: c.response,
inversion: false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Setting/Site.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ onMounted(() => {
/>
</div>
<p>
{{ $t('common.loginSaltTip') }}
{{ $t('setting.loginSaltTip') }}
</p>
</div>
<div class="flex items-center space-x-4">
Expand Down

0 comments on commit f54b7c7

Please sign in to comment.