Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
netdisc
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
rocosen
netdisc
Commits
43ff9c90
Commit
43ff9c90
authored
Dec 02, 2022
by
rocosen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c6f0cf48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
main.ts
src/main/main.ts
+0
-0
login.jsx
src/renderer/console/login.jsx
+3
-5
No files found.
src/main/main.ts
View file @
43ff9c90
src/renderer/console/login.jsx
View file @
43ff9c90
...
...
@@ -66,11 +66,9 @@ export default (props) => {
const
[
passwordError
,
setPasswordError
]
=
useState
(
false
);
useEffect
(()
=>
{
if
(
localStorage
.
getItem
(
Constants
.
TOKEN_KEY
)
)
{
if
(
localStorage
.
getItem
(
Constants
.
TOKEN_KEY
))
{
getUserData
();
}
else
{
}
else
{
electron
.
ipcRenderer
.
send
(
'openLogin-windown'
);
}
if
(
!
localStorage
.
getItem
(
'Preferences'
))
{
...
...
@@ -131,7 +129,7 @@ export default (props) => {
);
navigate
(
'/home'
);
electron
.
ipcRenderer
.
send
(
'resize-home'
);
}
else
{
}
else
{
electron
.
ipcRenderer
.
send
(
'openLogin-windown'
);
}
};
...
...
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