mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix setting getAccess
This commit is contained in:
1 file changed
+1
-1
@@ -181,7 +181,7 @@ export class SettingService extends Service {
|
||||
if (path.some((p) => typeof p === 'symbol')) return currentValue;
|
||||
return new Proxy(currentValue, {
|
||||
get(self, key: string) {
|
||||
return getAccess([...path, ...key]);
|
||||
return getAccess([...path, key]);
|
||||
},
|
||||
set(self, p: string | symbol, newValue: any) {
|
||||
that.setConfig([...path, p].join(','), newValue);
|
||||
|
||||
Reference in new issue
Block a user