Begin work on saving compliance report
This commit is contained in:
parent
3ad95e1365
commit
553b65556a
22 changed files with 2419 additions and 42 deletions
16
ts/store/local.ts
Normal file
16
ts/store/local.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useStoreLocal = defineStore("local", () => {
|
||||
function getSessionID(): string {
|
||||
let id = localStorage.getItem("session_id");
|
||||
if (id) {
|
||||
return id;
|
||||
}
|
||||
id = crypto.randomUUID();
|
||||
localStorage.setItem("session_id", id.toString());
|
||||
return id;
|
||||
}
|
||||
return {
|
||||
getSessionID,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue