Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
48b6c481
Commit
48b6c481
authored
Apr 13, 2026
by
erio
Browse files
fix(notify): auto-fill recharge URL with current origin when empty
parent
c1eb79e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/cmd/server/VERSION
View file @
48b6c481
0.1.110.
39
0.1.110.
40
frontend/src/views/admin/SettingsView.vue
View file @
48b6c481
...
...
@@ -2707,7 +2707,7 @@
<
/div
>
<
div
>
<
label
class
=
"
mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300
"
>
{{
t
(
'
admin.settings.balanceNotify.rechargeUrl
'
)
}}
<
/label
>
<
input
v
-
model
=
"
form.balance_low_notify_recharge_url
"
type
=
"
url
"
class
=
"
input
"
:
placeholder
=
"
t('admin.settings.balanceNotify.rechargeUrlPlaceholder')
"
/>
<
input
v
-
model
=
"
form.balance_low_notify_recharge_url
"
type
=
"
url
"
class
=
"
input
"
:
placeholder
=
"
currentOrigin
"
/>
<
p
class
=
"
mt-1 text-xs text-gray-500 dark:text-gray-400
"
>
{{
t
(
'
admin.settings.balanceNotify.rechargeUrlHint
'
)
}}
<
/p
>
<
/div
>
<
/div
>
...
...
@@ -3262,6 +3262,8 @@ const addQuotaNotifyEmail = () => {
form
.
account_quota_notify_emails
.
push
({
email
:
''
,
disabled
:
false
,
verified
:
true
}
)
}
const
currentOrigin
=
typeof
window
!==
'
undefined
'
?
window
.
location
.
origin
:
''
// LinuxDo OAuth redirect URL suggestion
const
linuxdoRedirectUrlSuggestion
=
computed
(()
=>
{
if
(
typeof
window
===
'
undefined
'
)
return
''
...
...
@@ -3604,7 +3606,7 @@ async function saveSettings() {
// Balance & quota notification
balance_low_notify_enabled
:
form
.
balance_low_notify_enabled
,
balance_low_notify_threshold
:
Number
(
form
.
balance_low_notify_threshold
)
||
0
,
balance_low_notify_recharge_url
:
form
.
balance_low_notify_recharge_url
||
''
,
balance_low_notify_recharge_url
:
form
.
balance_low_notify_recharge_url
||
currentOrigin
,
account_quota_notify_enabled
:
form
.
account_quota_notify_enabled
,
account_quota_notify_emails
:
(
form
.
account_quota_notify_emails
||
[]).
filter
((
e
)
=>
e
.
email
.
trim
()
!==
''
),
}
...
...
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