mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
keep profile name
This commit is contained in:
parent
cf3d4e023f
commit
d85be8a298
@ -104,7 +104,7 @@ export async function createProfile(item: Partial<IProfileItem>): Promise<IProfi
|
||||
const id = item.id || new Date().getTime().toString(16)
|
||||
const newItem = {
|
||||
id,
|
||||
name: item.name || item.type === 'remote' ? 'Remote File' : 'Local File',
|
||||
name: item.name || (item.type === 'remote' ? 'Remote File' : 'Local File'),
|
||||
type: item.type || 'local',
|
||||
url: item.url,
|
||||
interval: item.interval || 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user