เพิ่ม ui sort เครื่องราชแบบ drag & drop

This commit is contained in:
Warunee Tamkoo 2024-01-30 12:06:06 +07:00
parent cf69df74ac
commit fb0347fbe9
8 changed files with 175 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import { useCounterMixin } from "@/stores/mixin";
const { date2Thai } = useCounterMixin();
export const useInsigniaDataStore = defineStore("insigniaData", () => {
const row = ref<DataRow[]>();
const row = ref<DataRow[]>([]);
function fetchData(data: DataResponse[], insigniaType?: string) {
data.forEach((row, index) => {
row.level = index + 1;