Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ai-astro-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liubinyu
ai-astro-app
Commits
a7caed47
Commit
a7caed47
authored
Jun 06, 2025
by
liubinyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
e137e193
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
request.js
api/request.js
+2
-1
chat.vue
pages/chat/chat.vue
+8
-6
home.vue
pages/home/home.vue
+2
-2
No files found.
api/request.js
View file @
a7caed47
...
...
@@ -63,11 +63,12 @@ class Request {
baseUrl
:
''
,
// 请求的根域名
header
:
{},
method
:
'POST'
,
timeout
:
60
*
1000
,
dataType
:
'json'
,
responseType
:
'text'
,
showLoading
:
true
,
loadingText
:
'请求中...'
,
loadingTime
:
8
00
,
loadingTime
:
1
00
,
timer
:
null
,
originalData
:
false
,
loadingMask
:
true
,
...
...
pages/chat/chat.vue
View file @
a7caed47
...
...
@@ -40,7 +40,7 @@
};
},
onLoad
()
{
//
this.init()
this
.
init
()
},
methods
:
{
// 初始化
...
...
@@ -73,7 +73,9 @@
else
return
!!
item
.
user
!==
!!
this
.
recordList
[
index
-
1
].
user
},
confirm
()
{
this
.
addMsg
(
this
.
inputText
,
true
)
const
txt
=
this
.
inputText
.
trim
()
if
(
!
txt
)
return
uni
.
showToast
({
title
:
'不能发送空白消息'
,
icon
:
'none'
})
this
.
addMsg
(
txt
,
true
)
this
.
inputText
=
''
},
// 新增记录
...
...
@@ -145,8 +147,8 @@
}
.content
{
margin-left
:
1
1
0rpx
;
margin-right
:
3
0rpx
;
margin-left
:
1
0
0rpx
;
margin-right
:
4
0rpx
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#000824
;
...
...
@@ -165,8 +167,8 @@
}
.content
{
margin-left
:
3
0rpx
;
margin-right
:
1
1
0rpx
;
margin-left
:
4
0rpx
;
margin-right
:
1
0
0rpx
;
}
}
}
...
...
pages/home/home.vue
View file @
a7caed47
...
...
@@ -124,11 +124,11 @@
justify-content
:
center
;
align-items
:
center
;
flex-wrap
:
wrap
;
gap
:
1
6
rpx
;
gap
:
1
2
rpx
;
margin
:
50rpx
0
50rpx
;
.word
{
padding
:
8rpx
20
rpx
12rpx
;
padding
:
8rpx
16
rpx
12rpx
;
border-radius
:
100rpx
;
background
:
rgba
(
116
,
100
,
255
,
0
.1
);
font-size
:
26rpx
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment