|
|
@ -10,24 +10,7 @@ const classticOneData = ref({ |
|
|
|
text: "", |
|
|
|
descr: "" |
|
|
|
}) |
|
|
|
const classticList = async () => { |
|
|
|
try { |
|
|
|
const response = await get("/classtics/list"); |
|
|
|
if (response) { |
|
|
|
classticlist.value = response.data.data.map((item: any, index: any) => ({ |
|
|
|
key: (index + 1).toString(), |
|
|
|
id: item.id, |
|
|
|
header: item.header, |
|
|
|
text: item.text, |
|
|
|
descr: item.descr |
|
|
|
})); |
|
|
|
} else { |
|
|
|
console.error("Response data structure is not as expected"); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.error("Failed to fetch data", error); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const classticSearch = async () => { |
|
|
|
try { |
|
|
|
const response = await get( |
|
|
|