diff --git a/frontend/src/lang/locale/en.ts b/frontend/src/lang/locale/en.ts index 7cc8c138..e595fde7 100644 --- a/frontend/src/lang/locale/en.ts +++ b/frontend/src/lang/locale/en.ts @@ -388,7 +388,7 @@ export default { noSubs: 'There are no available subscriptions.', group: 'Group Details', rule: 'Rule Details', - auto: 'This configuration is managed by subscription and will be overwritten when the subscription is updated!\nIf you want to modify this profile, please use the plugin system.', + auto: 'This profile is controlled by subscription and will be overwritten after updates.\nTo modify it, use mixins and scripts.', mixinSettings: { name: 'Mixin', priority: 'Priority', diff --git a/frontend/src/lang/locale/zh.ts b/frontend/src/lang/locale/zh.ts index a7040842..4aee9055 100644 --- a/frontend/src/lang/locale/zh.ts +++ b/frontend/src/lang/locale/zh.ts @@ -388,7 +388,7 @@ export default { noSubs: '没有可用的订阅', group: '策略组详情', rule: '规则详情', - auto: '此配置由订阅接管,更新订阅时会被覆盖!\n如果你想修改此配置,请使用插件系统。', + auto: '此配置文件由订阅控制,并将在更新订阅时被覆盖。要修改它,请使用混入和脚本。', mixinSettings: { name: '混入配置', priority: '优先级', diff --git a/frontend/src/stores/subscribes.ts b/frontend/src/stores/subscribes.ts index 149a2709..91f36908 100644 --- a/frontend/src/stores/subscribes.ts +++ b/frontend/src/stores/subscribes.ts @@ -208,6 +208,8 @@ export const useSubscribesStore = defineStore('subscribes', () => { if (profile) { _profile.name = profile.name _profile.advancedConfig.secret = profile.advancedConfig.secret + _profile.mixinConfig = profile.mixinConfig + _profile.scriptConfig = profile.scriptConfig profilesStore.editProfile(profile.id, _profile) } else { _profile.name = s.name diff --git a/frontend/src/utils/generator.ts b/frontend/src/utils/generator.ts index 0aa950e9..2dda0832 100644 --- a/frontend/src/utils/generator.ts +++ b/frontend/src/utils/generator.ts @@ -248,7 +248,7 @@ const generateRuleProviders = async ( 1. Generate the config from the profile. 2. Merge the config using mixins. 3. Process the config using scripts. - 4. Handle the config using plugins. + 4. Process the config using plugins. */ export const generateConfig = async (originalProfile: ProfileType) => { const profile = deepClone(originalProfile)