|
@@ -7,7 +7,7 @@ import {useRouter} from "vue-router";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
-let storeList = ref([])
|
|
|
|
|
|
|
+let storeList = ref()
|
|
|
|
|
|
|
|
getStoreList();
|
|
getStoreList();
|
|
|
|
|
|
|
@@ -15,6 +15,8 @@ function getStoreList() {
|
|
|
getAllStore().then(res => {
|
|
getAllStore().then(res => {
|
|
|
storeList.value = res.result;
|
|
storeList.value = res.result;
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ console.warn(storeList.value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function toStoreDetailPage(storeId) {
|
|
function toStoreDetailPage(storeId) {
|
|
@@ -23,9 +25,11 @@ function toStoreDetailPage(storeId) {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <StoreItem class="store-item-list"
|
|
|
|
|
- v-for="storeVO in storeList" :storeVO="storeVO"
|
|
|
|
|
- @click="toStoreDetailPage(storeVO.id)" />
|
|
|
|
|
|
|
+ <el-main>
|
|
|
|
|
+ <StoreItem class="store-item-list"
|
|
|
|
|
+ v-for="storeVO in storeList" :storeVO="storeVO"
|
|
|
|
|
+ @click="toStoreDetailPage(storeVO.id)" />
|
|
|
|
|
+ </el-main>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|