@@ -346,31 +336,31 @@
精品推荐
-
+
@@ -1198,10 +1188,12 @@ import { reactive, toRefs, onMounted } from "vue";
import { listHomeBooks } from "@/api/home";
import { ElMessage, ElLoading } from "element-plus";
import Header from "@/components/Header";
+import LatestNews from "@/components/LatestNews"
export default {
name: "home",
components: {
Header,
+ LatestNews
},
setup() {
const state = reactive({
@@ -1215,7 +1207,7 @@ export default {
hotRecommend: [],
// 精品推荐
goodRecommend: [],
- imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL
+ imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL,
});
onMounted(async () => {
@@ -1297,8 +1289,7 @@ export default {
});
return {
- ...toRefs(state)
-
+ ...toRefs(state),
};
},
};