|
|
@@ -3,6 +3,8 @@ import { defineStore } from "pinia";
|
|
|
|
|
|
export const useConfigStore = defineStore("config", () => {
|
|
|
const config = ref(JSON.parse(localStorage.getItem("config") || "{}"));
|
|
|
+ config.value.phone = config.value.phone || "";
|
|
|
+ config.value.id = config.value.id || "";
|
|
|
function save(val) {
|
|
|
config.value = val;
|
|
|
localStorage.setItem("config", JSON.stringify(val));
|