Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
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
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
Maple
TOSTUMI
Commits
f31d85f8
Commit
f31d85f8
authored
Nov 30, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决上传错误提示,解决登录模块账号不变问题
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
5c9b2f94
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
AvatarDropdown.tsx
src/components/GlobalHeader/AvatarDropdown.tsx
+18
-0
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+1
-0
Account.tsx
src/pages/AccountManagement/account/Account.tsx
+1
-0
ContractContent.tsx
src/pages/ContractManagement/ContractContent.tsx
+5
-2
No files found.
src/components/GlobalHeader/AvatarDropdown.tsx
View file @
f31d85f8
...
@@ -24,6 +24,24 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
...
@@ -24,6 +24,24 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
// dispatch({
// dispatch({
// type: 'user/deleteCurrent',
// type: 'user/deleteCurrent',
// });
// });
// 清掉所有localStorage缓存
localStorage
.
clear
();
// 清掉本域名所有cookie
// let keys = document.cookie.match(/[^ =;]+(?==)/g);
// if (keys) {
// for (var i = keys.length; i--; ) {
// document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString(); // 清除当前域名下的,例如:m.ratingdog.cn
// document.cookie =
// keys[i] +
// '=0;path=/;domain=' +
// document.domain +
// ';expires=' +
// new Date(0).toUTCString(); // 清除当前域名下的,例如 .m.ratingdog.cn
// document.cookie =
// keys[i] + '=0;path=/;domain=ratingdog.cn;expires=' + new Date(0).toUTCString(); // 清除一级域名下的或指定的,例如 .ratingdog.cn
// }
// }
dispatch
({
dispatch
({
type
:
'login/logout'
,
type
:
'login/logout'
,
});
});
...
...
src/layouts/BasicLayout.tsx
View file @
f31d85f8
...
@@ -72,6 +72,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
...
@@ -72,6 +72,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
},
},
login
,
login
,
}
=
props
;
}
=
props
;
/**
/**
* constructor
* constructor
*/
*/
...
...
src/pages/AccountManagement/account/Account.tsx
View file @
f31d85f8
...
@@ -294,6 +294,7 @@ const Account = (props: any) => {
...
@@ -294,6 +294,7 @@ const Account = (props: any) => {
onChange=
{
sopens
}
onChange=
{
sopens
}
total=
{
Data
?
Data
.
page
.
totalRow
:
0
}
total=
{
Data
?
Data
.
page
.
totalRow
:
0
}
pageSize=
{
Data
?
Data
.
page
.
curPageSize
:
0
}
pageSize=
{
Data
?
Data
.
page
.
curPageSize
:
0
}
showSizeChanger=
{
false
}
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/ContractManagement/ContractContent.tsx
View file @
f31d85f8
...
@@ -170,11 +170,14 @@ const ContractContent = (props: any) => {
...
@@ -170,11 +170,14 @@ const ContractContent = (props: any) => {
fileList
:
fileList
,
fileList
:
fileList
,
onChange
:
({
file
}:
{
file
:
any
})
=>
{
onChange
:
({
file
}:
{
file
:
any
})
=>
{
console
.
log
(
file
);
console
.
log
(
file
);
if
(
file
.
status
===
'uploading'
)
{
if
(
file
.
status
===
'uploading'
)
{
setimgLoad
(
true
);
setimgLoad
(
true
);
}
}
if
(
file
.
status
==
'done'
)
{
if
(
file
.
status
===
'error'
)
{
message
.
error
(
file
.
name
+
' Upload failed !'
);
setimgLoad
(
false
);
}
if
(
file
.
status
===
'done'
)
{
message
.
success
(
file
.
name
+
' Upload Successful !'
);
message
.
success
(
file
.
name
+
' Upload Successful !'
);
// 实现在线预览
// 实现在线预览
...
...
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