Skip to content

Commit f54b7c7

Browse files
author
Kerwin
committed
fix: 模板丢失
fix: 时区不正确
1 parent 367dfd5 commit f54b7c7

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ COPY --from=frontend /app/dist /app/public
5555

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

58+
COPY --from=backend /app/src/utils/templates /app/build/templates
59+
5860
EXPOSE 3002
5961

6062
CMD ["sh", "-c", "./replace-title.sh && pnpm run prod"]

README.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ services:
220220
depends_on:
221221
- database
222222
environment:
223+
TZ: Asia/Shanghai
223224
# one of two
224225
OPENAI_API_KEY: xxxxxx
225226
# one of two

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ services:
226226
depends_on:
227227
- database
228228
environment:
229+
TZ: Asia/Shanghai
229230
# 二选一
230231
OPENAI_API_KEY: sk-xxx
231232
# 二选一

docker-compose/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
depends_on:
1111
- database
1212
environment:
13+
TZ: Asia/Shanghai
1314
# 二选一
1415
OPENAI_API_KEY: sk-xxx
1516
# 二选一

service/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router.get('/chat-hisroty', auth, async (req, res) => {
106106
chats.forEach((c) => {
107107
if (c.status !== Status.InversionDeleted) {
108108
result.push({
109+
uuid: c.uuid,
109110
dateTime: new Date(c.dateTime).toLocaleString(),
110111
text: c.prompt,
111112
inversion: true,
@@ -119,6 +120,7 @@ router.get('/chat-hisroty', auth, async (req, res) => {
119120
}
120121
if (c.status !== Status.ResponseDeleted) {
121122
result.push({
123+
uuid: c.uuid,
122124
dateTime: new Date(c.dateTime).toLocaleString(),
123125
text: c.response,
124126
inversion: false,

src/components/common/Setting/Site.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ onMounted(() => {
8787
/>
8888
</div>
8989
<p>
90-
{{ $t('common.loginSaltTip') }}
90+
{{ $t('setting.loginSaltTip') }}
9191
</p>
9292
</div>
9393
<div class="flex items-center space-x-4">

0 commit comments

Comments
 (0)