feat: 新增用户主页和个人主页功能

新增用户主页和个人主页的HTML、CSS和JS文件
添加相关图片资源
重构sectionIndex页面为section-index.html
更新sectionIndex.js以支持组件导入
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-10-21 19:05:17 +08:00
parent acb96969d7
commit f1d4b25556
13 changed files with 1246 additions and 124 deletions

13
js/homepage-other.js Normal file
View File

@@ -0,0 +1,13 @@
const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch } = Vue;
import { MyComponent } from "../component/item-forum/item-forum.js";
const appSectionIndex = createApp({
setup() {
let signInAlreadyState = ref(false);
console.log(23212312311111);
return { signInAlreadyState };
},
});
appSectionIndex.component("MyComponent", MyComponent);
appSectionIndex.mount("#homepage-other");

View File

@@ -1,9 +1,12 @@
const { createApp, ref, onMounted, nextTick, onUnmounted, computed, watch } = Vue;
import { MyComponent } from "../component/item-forum/item-forum.js";
createApp({
const appSectionIndex = createApp({
setup() {
let signInAlreadyState = ref(false);
return { signInAlreadyState };
},
}).mount("#sectionIndex");
});
appSectionIndex.component("MyComponent", MyComponent);
appSectionIndex.mount("#sectionIndex");