Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Dui123
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王天宇
Dui123
Commits
68483b60
Commit
68483b60
authored
Nov 02, 2021
by
wty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置,测试6
parent
5ea17426
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
SQLPool.js
server/SQLPool.js
+1
-0
index.jsx
src/page/index/index.jsx
+1
-1
index.jsx
src/page/indexAdmin/index.jsx
+1
-1
No files found.
server/SQLPool.js
View file @
68483b60
...
...
@@ -3,6 +3,7 @@ const request = require('request')
const
config
=
require
(
'../config/getConfig'
)()
//应用数据库
console
.
info
(
'CONFIG:'
,
config
)
const
getMysql
=
new
Promise
((
resolve
)
=>
{
request
(
config
[
'remote_config_url'
],{},(
error
,
request
,
body
)
=>
{
const
data
=
JSON
.
parse
(
body
)
...
...
src/page/index/index.jsx
View file @
68483b60
...
...
@@ -13,7 +13,7 @@ function Index() {
const
history
=
useHistory
()
const
{
fetchData
,
dataCenter
,
dispatch
}
=
useContext
(
Root
)
const
getUser
=
()
=>
{
fetchData
(
'/users/getUser'
,
{
uid
:
'100001'
},
'userInfo'
)
fetchData
(
'/users/getUser'
,
{},
'userInfo'
)
.
catch
(
res
=>
+
res
.
code
===
70001
&&
(
gotoLogin
())
)
...
...
src/page/indexAdmin/index.jsx
View file @
68483b60
...
...
@@ -16,7 +16,7 @@ function Index() {
const
{
fetchData
,
dataCenter
,
dispatch
}
=
useContext
(
Root
)
const
showPop
=
popComponent
=>
{}
const
getUser
=
()
=>
{
fetchData
(
'/users/getUser'
,
{
uid
:
'100001'
},
'userInfo'
)
fetchData
(
'/users/getUser'
,
{},
'userInfo'
)
.
catch
(
res
=>
+
res
.
code
===
70001
&&
(
gotoLogin
())
)
...
...
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