5in1 优化若干bug
This commit is contained in:
@@ -233,10 +233,10 @@ import { useCountryStore } from '@/stores/countryStore';
|
||||
// Mock API calls if not present
|
||||
// Ideally we should import these from api file, but for simplicity I will mock them or use empty callbacks
|
||||
// if the user hasn't provided the api file content.
|
||||
// Based on hostsList.vue reading, it uses `tkhostdata` from `@/api/account`.
|
||||
// Based on hostsList.vue reading, it uses `tkbigdata` from `@/api/account`.
|
||||
// I will attempt to import, but if it fails I might need to create it.
|
||||
// Assuming verify step will catch missing API functions.
|
||||
import { tkhostdata, getCountryinfo } from "@/api/account";
|
||||
import { tkbigdata, getCountryinfo } from "@/api/account";
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const countryStore = useCountryStore();
|
||||
@@ -367,8 +367,8 @@ function formatDate(date) {
|
||||
const getlist = () => {
|
||||
loading.value = true;
|
||||
// Use API if available, else mock
|
||||
if (typeof tkhostdata === 'function') {
|
||||
tkhostdata({
|
||||
if (typeof tkbigdata === 'function') {
|
||||
tkbigdata({
|
||||
tenantId: Number(userInfo.value.tenantId),
|
||||
sort: sortData.value.sort,
|
||||
sortName: sortData.value.sortName,
|
||||
@@ -393,7 +393,7 @@ const getlist = () => {
|
||||
tableData.value = [];
|
||||
});
|
||||
} else {
|
||||
console.warn("tkhostdata API not found");
|
||||
console.warn("tkbigdata API not found");
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user