mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: use seperate cache key in homework
This commit is contained in:
2 files changed
+2
-4
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
let cacheKey = `${UserContext._id}/${UiContext.pdoc.domainId}/${UiContext.pdoc.docId}`;
|
let cacheKey = `${UserContext._id}/${UiContext.pdoc.domainId}/${UiContext.pdoc.docId}`;
|
||||||
if (UiContext.tdoc?._id && UiContext.tdoc.rule !== 'homework') cacheKey += `@${UiContext.tdoc._id}`;
|
if (UiContext.tdoc?._id) cacheKey += `@${UiContext.tdoc._id}`;
|
||||||
|
|
||||||
// TODO switch to indexeddb
|
// TODO switch to indexeddb
|
||||||
export default function reducer(state = {
|
export default function reducer(state = {
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import $ from 'jquery';
|
|||||||
import { ActionDialog } from 'vj/components/dialog';
|
import { ActionDialog } from 'vj/components/dialog';
|
||||||
import Notification from 'vj/components/notification';
|
import Notification from 'vj/components/notification';
|
||||||
import { AutoloadPage } from 'vj/misc/Page';
|
import { AutoloadPage } from 'vj/misc/Page';
|
||||||
import {
|
import { i18n, request, tpl } from 'vj/utils';
|
||||||
api, gql, i18n, request, tpl,
|
|
||||||
} from 'vj/utils';
|
|
||||||
|
|
||||||
async function verifywebauthn($form) {
|
async function verifywebauthn($form) {
|
||||||
if (!window.isSecureContext || !('credentials' in navigator)) {
|
if (!window.isSecureContext || !('credentials' in navigator)) {
|
||||||
|
|||||||
Reference in new issue
Block a user