Refactoring code module 01_metadata => 05_insignia
This commit is contained in:
parent
cb1a5251a1
commit
6c2e9437a4
6 changed files with 859 additions and 1113 deletions
|
|
@ -10,10 +10,8 @@ const { date2Thai } = useCounterMixin();
|
|||
|
||||
export const useInsigniaDataStore = defineStore("insigniaData", () => {
|
||||
const row = ref<DataRow[]>([]);
|
||||
function fetchData(data: DataResponse[], insigniaType?: string) {
|
||||
// data.forEach((row, index) => {
|
||||
// row.level = index + 1;
|
||||
// });
|
||||
|
||||
async function fetchData(data: DataResponse[], insigniaType?: string) {
|
||||
const list = data.map((e) => ({
|
||||
...e,
|
||||
insigniaType: insigniaType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue