2 Commits

  1. 7
      pages/marketSituation/marketDetail.vue

7
pages/marketSituation/marketDetail.vue

@ -76,6 +76,7 @@ const marketTitle = ref();
const sortType = ref(""); // 'price' 'change'
const sortOrder = ref("desc"); // 'asc' 'desc'
const regionalGroupArray = ref([]);
//
const stockList = ref([
{
@ -206,17 +207,19 @@ const sortedStockList = computed(() => {
const getRegionalGroupList = async () => {
try {
const result = await getRegionalGroupListAPI({
market: marketTitle.value,
name: marketTitle.value,
});
regionalGroupArray.value = result.data;
} catch (e) {
console.error("获取区域分组列表失败:", e);
}
};
//
onLoad((options) => {
onLoad(async (options) => {
if (options && options.market) {
marketTitle.value = options.market;
await getRegionalGroupList();
}
});

Loading…
Cancel
Save