feat: 新增用户主页和个人主页功能
新增用户主页和个人主页的HTML、CSS和JS文件 添加相关图片资源 重构sectionIndex页面为section-index.html 更新sectionIndex.js以支持组件导入
This commit is contained in:
13
js/homepage-other.js
Normal file
13
js/homepage-other.js
Normal 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");
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user