Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-captcha-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
郑磊
fj-captcha-service
Commits
fe51c2c3
Commit
fe51c2c3
authored
May 17, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认为无圆角,无阴影
parent
10f5571f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
App.vue
web/src/App.vue
+10
-3
No files found.
web/src/App.vue
View file @
fe51c2c3
...
...
@@ -6,12 +6,17 @@ const requestCaptchaDataUrl = import.meta.env.VITE_REQUEST_CAPTCHA_URL
const
validCaptchaUrl
=
import
.
meta
.
env
.
VITE_VALID_CAPTCHA_URL
//通过URL上的参数解析验证码组件的参数
const
{
radius
,
shadow
,
locale
,
callback
,
extra
}
=
(()
=>
{
const
{
radius
,
shadow
,
locale
,
callback
,
extra
,
style
}
=
(()
=>
{
const
url
=
new
URL
(
location
.
href
)
const
radius
=
url
.
searchParams
.
get
(
'radius'
)
!==
'0
'
const
shadow
=
url
.
searchParams
.
get
(
'shadow'
)
!==
'0
'
const
radius
=
url
.
searchParams
.
get
(
'radius'
)
===
'1
'
const
shadow
=
url
.
searchParams
.
get
(
'shadow'
)
===
'1
'
const
locale
=
url
.
searchParams
.
get
(
'lang'
)
??
undefined
const
callback
=
url
.
searchParams
.
get
(
'callback'
)
const
bg
=
url
.
searchParams
.
get
(
'bg'
)
const
style
:
Record
<
string
,
any
>
=
{}
if
(
bg
)
{
style
.
background
=
bg
}
const
extra
=
(()
=>
{
const
json
=
url
.
searchParams
.
get
(
'extra'
)
...
...
@@ -36,6 +41,7 @@ const { radius, shadow, locale, callback, extra } = (() => {
locale
,
callback
,
extra
,
style
,
}
})()
...
...
@@ -61,6 +67,7 @@ const onSuccess = (id: string) => {
:shadow=
"shadow"
:locale=
"locale"
:extra=
"extra"
:style=
"style"
@
success=
"onSuccess"
/>
</
template
>
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