mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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;
|
if (path.some((p) => typeof p === 'symbol')) return currentValue;
|
||||||
return new Proxy(currentValue, {
|
return new Proxy(currentValue, {
|
||||||
get(self, key: string) {
|
get(self, key: string) {
|
||||||
return getAccess([...path, ...key]);
|
return getAccess([...path, key]);
|
||||||
},
|
},
|
||||||
set(self, p: string | symbol, newValue: any) {
|
set(self, p: string | symbol, newValue: any) {
|
||||||
that.setConfig([...path, p].join(','), newValue);
|
that.setConfig([...path, p].join(','), newValue);
|
||||||
|
|||||||
Reference in new issue
Block a user