🐛 fix(subscribe): Update subscription domain placeholder to include examples; improve site name retrieval in global store

This commit is contained in:
web@ppanel 2025-02-23 13:25:01 +07:00
parent 715d0113ca
commit c65a44c2c7
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ export default function SubscribeConfig() {
<TableCell className='text-right'>
<Textarea
className='h-52'
placeholder={t('subscriptionDomainPlaceholder')}
placeholder={`${t('subscriptionDomainPlaceholder')}\nexample.com\nwww.example.com`}
defaultValue={data?.subscribe_domain}
onBlur={(e) => {
updateConfig('subscribe_domain', e.target.value);

View File

@ -104,7 +104,7 @@ export const useGlobalStore = create<GlobalStore>((set, get) => ({
});
},
getAppSubLink: (type: string, url: string) => {
const name = get().common.site.site_name || '';
const name = get().common?.site?.site_name || '';
switch (type) {
case 'Clash':
return `clash://install-config?url=${url}&name=${name}`;