IKHSAN
ENID Baca dalam Bahasa Indonesia

opendesk

Public
Branch
main
Latest commit
08d9f3328 October 2026

globalStore.ts

Open raw
import { defineStore } from "pinia";
import { getCurrentInstance } from "vue";

export const globalStore = defineStore("od-global", () => {
  const app = getCurrentInstance();
  const { $dialog, $socket } = app.appContext.config.globalProperties;

  return {
    $dialog,
    $socket,
  };
});
bytes
294
lines
13
Type
ts
Latest commit
28 October 2026