Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-questionnaire
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ef5bc19f
authored
Dec 23, 2024
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复cname登录
parent
c9138f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
pages/index.vue
+12
-0
No files found.
pages/index.vue
View file @
ef5bc19f
...
...
@@ -173,6 +173,16 @@ export default {
// 云平台登录模块初始化
initLoginCenter
()
{
if
(
!
window
.
LoginCenter
)
return
const
isCname
=
!
window
.
location
.
href
.
includes
(
`//
${
process
.
env
.
CUSTOMER_DOMAIN
}
`
)
const
state
=
isCname
?
document
.
domain
:
''
const
wxPcRedirect
=
isCname
?
window
.
location
.
href
.
replace
(
/
[
a-zA-Z0-9
][
-a-zA-Z0-9
]{0,62}(\.[
a-zA-Z0-9
][
-a-zA-Z0-9
]{0,62}
|
(
:
[
0-9
]{1,4}))
+
\.?
/
,
`
${
process
.
env
.
CUSTOMER_DOMAIN
}
`
)
:
window
.
location
.
href
// eslint-disable-next-line no-undef
this
.
loginInstance
=
LoginCenter
({
target
:
document
.
body
,
...
...
@@ -180,6 +190,8 @@ export default {
uin
:
this
.
$route
.
query
.
uin
,
zIndex
:
100000
,
backUrl
:
encodeURIComponent
(
window
.
location
.
href
),
wxPcRedirect
,
state
,
serviceAgreement
:
`//
${
process
.
env
.
OSS_DOMAIN
}
/staticPages/agreement_user.html`
,
privacyAgreement
:
`//
${
process
.
env
.
OSS_DOMAIN
}
/staticPages/agreement_privacy.html`
,
successCallback
:
({
type
,
response
})
=>
{
...
...
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