feat(runtime): 即梦本机运行时 - 接入安全生成闭环与桌面本机渠道
Refs #225 Co-authored-by: zkhyww <127009345+zkhyww@users.noreply.github.com>
This commit is contained in:
@@ -11,8 +11,8 @@ export function setActiveUserScope(userId?: string | null) {
|
||||
window.localStorage.setItem(ACTIVE_USER_SCOPE_KEY, userId || GUEST_SCOPE);
|
||||
}
|
||||
|
||||
export function scopedStorageKey(name: string) {
|
||||
return `${name}:user:${getActiveUserScope()}`;
|
||||
export function scopedStorageKey(name: string, scope = getActiveUserScope()) {
|
||||
return `${name}:user:${scope}`;
|
||||
}
|
||||
|
||||
export const scopedLocalStorage = {
|
||||
|
||||
Reference in New Issue
Block a user