Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-template
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
于方蒙
react-template
Commits
8e26459c
Commit
8e26459c
authored
May 03, 2023
by
famon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e6382e45
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
public/index.html
+2
-5
src/api/agent.ts
+1
-0
src/components/login-list/index.tsx
+1
-1
No files found.
public/index.html
View file @
8e26459c
...
...
@@ -5,10 +5,7 @@
<link
rel=
"icon"
href=
"%PUBLIC_URL%/favicon.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
name=
"description"
content=
"Web site created using create-react-app"
/>
<meta
name=
"description"
content=
"Web site created using create-react-app"
/>
<link
rel=
"apple-touch-icon"
href=
"%PUBLIC_URL%/logo192.png"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
...
...
@@ -24,7 +21,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>
React App
</title>
<title>
随身玩小程序登录记录
</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
...
...
src/api/agent.ts
View file @
8e26459c
...
...
@@ -9,6 +9,7 @@ export type agentListResponse = {
user_name
:
string
last_login_time
:
string
phone
:
string
comment
:
string
login_count
:
number
}
...
...
src/components/login-list/index.tsx
View file @
8e26459c
...
...
@@ -115,7 +115,7 @@ export function LoginList() {
{
data
.
map
((
item
,
index
)
=>
(
<
List
.
Item
key=
{
index
}
>
<
div
className=
"flex-space"
>
<
span
className=
"ceshi"
>
{
item
.
user_name
}
</
span
>
<
span
className=
"ceshi"
>
{
item
.
comment
?
item
.
comment
:
item
.
user_name
}
</
span
>
<
span
className=
"ceshi"
>
{
item
.
last_login_time
}
</
span
>
<
span
className=
"ceshi"
>
{
item
.
phone
}
</
span
>
<
Tag
color=
{
checkCount
(
item
.
login_count
)
}
>
{
item
.
login_count
}
</
Tag
>
...
...
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