mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
fix(provider): include icon fields when duplicating provider (#297)
This commit is contained in:
committed by
GitHub
Unverified
parent
c1c85b020d
commit
6783a8a183
@@ -217,6 +217,8 @@ function App() {
|
||||
meta: provider.meta
|
||||
? JSON.parse(JSON.stringify(provider.meta))
|
||||
: undefined, // 深拷贝
|
||||
icon: provider.icon,
|
||||
iconColor: provider.iconColor,
|
||||
};
|
||||
|
||||
// 2️⃣ 如果原供应商有 sortIndex,需要将后续所有供应商的 sortIndex +1
|
||||
|
||||
Reference in New Issue
Block a user