Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e8276a01
authored
Apr 14, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 企业微信登录自测问题调整
1 parent
efbd4c66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
src/App.vue
src/store/modules/app.js
src/App.vue
View file @
e8276a0
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<
template
v-show=
"s
howWindow"
>
<
div
v-show=
"isS
howWindow"
>
<transition
name=
"fade"
>
<transition
name=
"fade"
>
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<router-view></router-view>
<router-view></router-view>
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<transition
name=
"fade"
>
<transition
name=
"fade"
>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
</transition>
</transition>
</
template
>
</
div
>
<
template
v-show=
"!s
howWindow"
>
<
div
v-show=
"!isS
howWindow"
>
<div
style=
"text-align: center;font-size: 14px;height: 48px;line-height: 48px;"
>
{{
windowTitle
}}
</div>
<div
style=
"text-align: center;font-size: 14px;height: 48px;line-height: 48px;"
>
{{
windowTitle
}}
</div>
</
template
>
</
div
>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
name
:
'App'
,
name
:
'App'
,
data
()
{
data
()
{
return
{
return
{
s
howWindow
:
false
,
isS
howWindow
:
false
,
windowTitle
:
''
windowTitle
:
''
}
}
},
},
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
watchFlag
:
{
watchFlag
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
s
howWindow
=
newval
this
.
isS
howWindow
=
newval
}
}
}
}
},
},
...
...
src/store/modules/app.js
View file @
e8276a0
...
@@ -58,14 +58,14 @@ const actions = {
...
@@ -58,14 +58,14 @@ const actions = {
if
(
userInfo
.
timestamp
&&
(
Date
.
now
()
-
userInfo
.
timestamp
)
>
(
1000
*
60
*
1440
))
{
if
(
userInfo
.
timestamp
&&
(
Date
.
now
()
-
userInfo
.
timestamp
)
>
(
1000
*
60
*
1440
))
{
console
.
log
(
'用户登录过期'
);
console
.
log
(
'用户登录过期'
);
}
else
{
}
else
{
console
.
log
(
'用户
登录未过期
'
);
console
.
log
(
'用户
已经登录
'
);
return
state
.
showWindow
=
true
;
return
state
.
showWindow
=
true
;
}
}
}
}
if
(
wwCode
)
{
if
(
wwCode
)
{
ssoApi
.
login
({
code
:
wwCode
,
corpId
,
getUserInfoFlag
:
false
}).
then
(
res
=>
{
ssoApi
.
login
({
code
:
wwCode
,
corpId
,
getUserInfoFlag
:
false
}).
then
(
res
=>
{
const
{
code
,
data
,
message
}
=
res
;
const
{
code
,
data
,
message
}
=
res
;
if
(
code
==
0
)
{
if
(
code
==
"0"
)
{
state
.
showWindow
=
true
;
state
.
showWindow
=
true
;
if
(
data
.
loginList
&&
data
.
loginList
.
length
)
{
if
(
data
.
loginList
&&
data
.
loginList
.
length
)
{
let
[
item
]
=
data
.
loginList
let
[
item
]
=
data
.
loginList
...
@@ -78,14 +78,12 @@ const actions = {
...
@@ -78,14 +78,12 @@ const actions = {
util
.
setLocalStorage
(
'ww_userInfo'
,
userInfo
);
util
.
setLocalStorage
(
'ww_userInfo'
,
userInfo
);
}
else
throw
''
}
else
throw
''
}
else
throw
''
}
else
throw
''
}
else
throw
message
}
else
{
Notify
({
message
:
message
})
state
.
showWindow
=
false
}
})
})
}
else
{
}
else
{
//添加提醒
// Notify({
// message: '正在登录授权中...',
// duration: 1200
// })
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
window
.
location
.
href
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
window
.
location
.
href
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment