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 588f043b
authored
Apr 14, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 自测问题修改
1 parent
4bd49306
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
src/App.vue
src/store/modules/app.js
src/App.vue
View file @
588f043
<
template
>
<div
id=
"app"
>
<template
v-
if
=
"showWindow"
>
<template
v-
show
=
"showWindow"
>
<transition
name=
"fade"
>
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<router-view></router-view>
...
...
@@ -10,7 +10,7 @@
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
</transition>
</
template
>
<
template
v-else
>
<
template
v-show=
"!showWindow"
>
<div
style=
"text-align: center;font-size: 14px;height: 48px;line-height: 48px;"
>
{{
windowTitle
}}
</div>
</
template
>
</div>
...
...
@@ -29,7 +29,6 @@ export default {
immediate
:
true
,
handler
(
newval
)
{
this
.
showWindow
=
newval
this
.
hideLoading
()
}
}
},
...
...
src/store/modules/app.js
View file @
588f043
...
...
@@ -81,11 +81,7 @@ const actions = {
}
else
throw
message
})
}
else
{
util
.
setLocalStorage
(
'authorizeUrl'
,
window
.
location
.
href
);
let
locationHref
=
window
.
location
.
href
;
//把字符串 department, personage, company 替换为 authorize
locationHref
=
locationHref
.
replace
(
/
(
department|personage|company
)
/g
,
'authorize'
);
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
locationHref
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
window
.
location
.
href
=
`
${
loginUrl
}
?redirect_uri=
${
encodeURIComponent
(
window
.
location
.
href
)}
&corpId=
${
corpId
}
&agentId=
${
agentId
}
&backLoginCode=BACKCODE`
}
}
catch
(
error
)
{
if
(
!
error
)
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