This commit is contained in:
Viet An
2026-07-01 10:59:23 +07:00
parent e9e4fbe24f
commit 68872d3f06
12 changed files with 66 additions and 117 deletions

View File

@@ -1,20 +1,27 @@
import { defineStore } from "pinia";
export const useStore = defineStore("maindev", {
export const useStore = defineStore("erp-dev", {
state: () => ({
ready: false,
viewport: undefined,
login: undefined,
token: undefined,
common: undefined,
viewport: null,
login: null,
token: null,
showmodal: null,
snackbar: null,
settings: [],
showmodal: undefined,
snackbar: undefined,
country: undefined,
lang: "vi",
branch: {},
rights: [],
product: [],
// set by api-loader
common: null,
tablesetting: null,
datatype: null,
settingtype: null,
settingclass: null,
colorchoice: null,
menuchoice: null,
colorscheme: null,
Invoice_Status: null,
Payment_Status: null,
Delivery_Status: null,
}),
actions: {
commit(name, data) {