Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
2a40bc30
Commit
2a40bc30
authored
1 year ago
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 去除workNo调用
parent
48e988fd
Pipeline
#81312
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Site.js
src/layouts/Site.js
+2
-2
index.js
src/pages/cloud/introduction/newproducts/index.js
+4
-3
No files found.
src/layouts/Site.js
View file @
2a40bc30
...
...
@@ -398,8 +398,8 @@ class Site {
if
(
hasGateWay
)
{
appService
.
authorizationToken
({
loginName
:
config
.
userInfo
?.
loginName
||
''
,
type
:
'
WorkNo
'
,
loginName
:
token
||
''
,
type
:
'
token
'
,
})
.
then
(
tokenRes
=>
{
const
accessToken
=
tokenRes
.
data
?.
access_token
??
null
;
...
...
This diff is collapsed.
Click to expand it.
src/pages/cloud/introduction/newproducts/index.js
View file @
2a40bc30
...
...
@@ -103,7 +103,8 @@ const NewProducts = props => {
config
.
widgets
=
[];
config
.
allWidgets
=
[];
config
.
userInfo
=
window
?.
globalConfig
?.
transformUserInfo
?.(
res
.
data
)
??
res
.
data
;
const
{
token
:
tk
}
=
window
?.
globalConfig
;
const
token
=
tk
||
Cookies
.
get
(
'token'
);
// 默认有个上次记住的登入企业,存在印象。这里把cookie和localStorage中的都重新设置一下
const
date
=
new
Date
();
date
.
setTime
(
date
.
getTime
()
+
24
*
60
*
60
*
1000
);
...
...
@@ -122,8 +123,8 @@ const NewProducts = props => {
if
(
hasGateWay
)
{
appService
.
authorizationToken
({
loginName
:
config
.
userInfo
?.
loginName
||
''
,
type
:
'
WorkNo
'
,
loginName
:
token
||
''
,
type
:
'
token
'
,
})
.
then
(
tokenRes
=>
{
if
(
res
.
code
===
0
)
{
...
...
This diff is collapsed.
Click to expand it.
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