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
76228175
Commit
76228175
authored
Dec 02, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台切换语言
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
86851cfb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
AvatarDropdown.tsx
src/components/GlobalHeader/AvatarDropdown.tsx
+6
-1
LanguageSettings.tsx
...s/AccountManagement/LanguageSettings/LanguageSettings.tsx
+3
-1
VisitorRecord.tsx
...pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
+0
-1
VisitorRecord.tsx
...pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
+0
-1
No files found.
src/components/GlobalHeader/AvatarDropdown.tsx
View file @
76228175
...
...
@@ -26,7 +26,10 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
// });
// 清掉所有localStorage缓存
localStorage
.
clear
();
// localStorage.clear();
// 只用清掉当前账户的 localStorage
localStorage
.
removeItem
(
'userInfo'
);
// 清掉本域名所有cookie
let
keys
=
document
.
cookie
.
match
(
/
[^
=;
]
+
(?=
=
)
/g
);
...
...
@@ -43,6 +46,8 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
keys
[
i
]
+
'=0;path=/;domain=ratingdog.cn;expires='
+
new
Date
(
0
).
toUTCString
();
}
}
// 在返回登录页
dispatch
({
type
:
'login/logout'
,
});
...
...
src/pages/AccountManagement/LanguageSettings/LanguageSettings.tsx
View file @
76228175
...
...
@@ -8,7 +8,9 @@ const locales = ['zh-CN', 'en-US'];
const
LanguageSettings
=
()
=>
{
const
languageSelect
=
(
e
:
any
)
=>
{
setLocale
(
locales
[
e
.
target
.
value
]);
// 无刷新切换
setLocale
(
locales
[
e
.
target
.
value
],
false
);
setCurLang
(
e
.
target
.
value
);
};
const
[
curLang
,
setCurLang
]
=
useState
(
0
);
...
...
src/pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
View file @
76228175
...
...
@@ -39,7 +39,6 @@ const VisitorRecord = (props: any) => {
{
title
:
'Security Guard'
,
dataIndex
:
'securityGuardName'
},
{
title
:
'Number Plate'
,
dataIndex
:
'numberPlate'
},
// 隐藏的搜索框
{
title
:
'Visitor Time'
,
hideInTable
:
true
,
dataIndex
:
'showTime'
,
valueType
:
'date'
},
{
title
:
'Visitor Time'
,
dataIndex
:
'updateTime'
,
valueType
:
'date'
},
{
title
:
'Community'
,
dataIndex
:
'visitorCommunity'
},
// { title: 'Unit', dataIndex: 'inviterAddress' },
...
...
src/pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
View file @
76228175
...
...
@@ -39,7 +39,6 @@ const VisitorRecord = (props: any) => {
{
title
:
'Security Guard'
,
dataIndex
:
'securityGuardName'
},
{
title
:
'Number Plate'
,
dataIndex
:
'numberPlate'
},
// 隐藏的搜索框
{
title
:
'Visitor Time'
,
hideInTable
:
true
,
dataIndex
:
'showTime'
,
valueType
:
'date'
},
{
title
:
'Visitor Time'
,
dataIndex
:
'updateTime'
,
valueType
:
'date'
},
{
title
:
'Community'
,
dataIndex
:
'visitorCommunity'
},
// { title: 'Unit', dataIndex: 'inviterAddress' },
...
...
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