重构了item-head、item-bottom、item-offer、item-summary和item-tenement组件,优化了props传递和数据处理逻辑 将公共头部和导航样式提取到public.css中,避免重复代码 修复了item-tenement组件中图片显示和数据处理的问题 更新了item-bottom组件的点赞和收藏逻辑,增加错误提示 优化了item-head组件的用户信息显示逻辑 调整了多个组件的样式细节,包括间距、图标大小等
24 lines
594 B
JavaScript
24 lines
594 B
JavaScript
const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch, provide } = Vue;
|
|
import { itemForum } from "../component/item-forum/item-forum.js";
|
|
|
|
const appSearch = createApp({
|
|
setup() {
|
|
onMounted(() => {
|
|
const params = getUrlParams();
|
|
const id = params.section || "";
|
|
if (id) {
|
|
section.value = id;
|
|
init();
|
|
}
|
|
|
|
section.value = id;
|
|
|
|
// init();
|
|
});
|
|
|
|
return {};
|
|
},
|
|
});
|
|
appSearch.component("item-forum", itemForum);
|
|
appSearch.mount("#sectionIndex");
|