mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-14 20:31:10 -05:00
🐛 fix(subscribe): Update subscription domain placeholder to include examples; improve site name retrieval in global store
This commit is contained in:
parent
715d0113ca
commit
c65a44c2c7
@ -92,7 +92,7 @@ export default function SubscribeConfig() {
|
|||||||
<TableCell className='text-right'>
|
<TableCell className='text-right'>
|
||||||
<Textarea
|
<Textarea
|
||||||
className='h-52'
|
className='h-52'
|
||||||
placeholder={t('subscriptionDomainPlaceholder')}
|
placeholder={`${t('subscriptionDomainPlaceholder')}\nexample.com\nwww.example.com`}
|
||||||
defaultValue={data?.subscribe_domain}
|
defaultValue={data?.subscribe_domain}
|
||||||
onBlur={(e) => {
|
onBlur={(e) => {
|
||||||
updateConfig('subscribe_domain', e.target.value);
|
updateConfig('subscribe_domain', e.target.value);
|
||||||
|
|||||||
@ -104,7 +104,7 @@ export const useGlobalStore = create<GlobalStore>((set, get) => ({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getAppSubLink: (type: string, url: string) => {
|
getAppSubLink: (type: string, url: string) => {
|
||||||
const name = get().common.site.site_name || '';
|
const name = get().common?.site?.site_name || '';
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'Clash':
|
case 'Clash':
|
||||||
return `clash://install-config?url=${url}&name=${name}`;
|
return `clash://install-config?url=${url}&name=${name}`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user