2025-04-14 10:57:27 +08:00

20 lines
575 B
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
const useScanCodeStore = common_vendor.defineStore("scancode", () => {
const type = common_vendor.ref("");
const code = common_vendor.ref([]);
const clearCode = (data) => {
type.value = "";
code.value = [];
};
const addCode = (data, intype) => {
type.value = intype;
code.value.push(data);
};
return { code, type, clearCode, addCode };
}, {
persist: true
});
exports.useScanCodeStore = useScanCodeStore;
//# sourceMappingURL=../../.sourcemap/mp-weixin/stores/scancode.js.map