diff --git a/node_modules/.cache/eslint/7dc60d80.json b/node_modules/.cache/eslint/7dc60d80.json index 7a4705eb..fb53002d 100644 --- a/node_modules/.cache/eslint/7dc60d80.json +++ b/node_modules/.cache/eslint/7dc60d80.json @@ -1 +1 @@ -[{"D:\\vue\\demo\\src\\main.js":"1","D:\\vue\\demo\\src\\App.vue":"2","D:\\vue\\demo\\src\\router\\index.js":"3","D:\\vue\\demo\\src\\views\\Main.vue":"4","D:\\vue\\demo\\src\\views\\shequ\\index.vue":"5","D:\\vue\\demo\\src\\components\\header.vue":"6","D:\\vue\\demo\\src\\components\\background.vue":"7"},{"size":250,"mtime":1730287261299,"results":"8","hashOfConfig":"9"},{"size":87,"mtime":1730287173219,"results":"10","hashOfConfig":"9"},{"size":418,"mtime":1730209531800,"results":"11","hashOfConfig":"9"},{"size":698,"mtime":1731057371238,"results":"12","hashOfConfig":"9"},{"size":554,"mtime":1730287287478,"results":"13","hashOfConfig":"9"},{"size":1628,"mtime":1730475097435,"results":"14","hashOfConfig":"9"},{"size":910,"mtime":1731055926442,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"13s4xo0",{"filePath":"19","messages":"20","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"21"},{"filePath":"22","messages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"24","messages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"21"},{"filePath":"28","messages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"21"},{"filePath":"30","messages":"31","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\vue\\demo\\src\\main.js",[],[],"D:\\vue\\demo\\src\\App.vue",[],[],"D:\\vue\\demo\\src\\router\\index.js",[],"D:\\vue\\demo\\src\\views\\Main.vue",[],"D:\\vue\\demo\\src\\views\\shequ\\index.vue",[],"D:\\vue\\demo\\src\\components\\header.vue",[],"D:\\vue\\demo\\src\\components\\background.vue",[]] \ No newline at end of file +[{"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\main.js":"1","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\App.vue":"2","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\router\\index.js":"3","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\Main.vue":"4","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\components\\header.vue":"5","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\components\\background.vue":"6","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\recommend\\index.vue":"7","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\chat\\chat.vue":"8","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\community\\trends.vue":"9","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\space\\space.vue":"10","D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\login\\login.vue":"11"},{"size":261,"mtime":1731506523733,"results":"12","hashOfConfig":"13"},{"size":97,"mtime":1731506523731,"results":"14","hashOfConfig":"13"},{"size":1052,"mtime":1731513557777,"results":"15","hashOfConfig":"13"},{"size":753,"mtime":1731509041050,"results":"16","hashOfConfig":"13"},{"size":2627,"mtime":1731513642386,"results":"17","hashOfConfig":"13"},{"size":910,"mtime":1731506523732,"results":"18","hashOfConfig":"13"},{"size":161,"mtime":1731508571798,"results":"19","hashOfConfig":"13"},{"size":156,"mtime":1731511731213,"results":"20","hashOfConfig":"13"},{"size":155,"mtime":1731512433247,"results":"21","hashOfConfig":"13"},{"size":157,"mtime":1731512507547,"results":"22","hashOfConfig":"13"},{"size":151,"mtime":1731513510444,"results":"23","hashOfConfig":"13"},{"filePath":"24","messages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"10795if",{"filePath":"26","messages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"34","messages":"35","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\main.js",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\App.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\router\\index.js",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\Main.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\components\\header.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\components\\background.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\recommend\\index.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\chat\\chat.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\community\\trends.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\space\\space.vue",[],"D:\\我的桌面\\恋爱森林\\dazuoye\\src\\views\\login\\login.vue",[]] \ No newline at end of file diff --git a/src/components/header.vue b/src/components/header.vue index 3e0b4751..341a423b 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -4,7 +4,7 @@ class="el-menu-demo" mode="horizontal" @select="handleSelect" - background-color="#FFFFFF" + background-color="#ffffff" text-color="#000000" active-text-color="#FEB2D7" > @@ -13,7 +13,7 @@ 智能推荐 - + 私信聊天 社区动态 @@ -26,33 +26,64 @@
- - - \ No newline at end of file + export default + { + name: 'HeaderComponent', // 添加组件名称 + // 其他组件选项 + } + + + + diff --git a/src/router/index.js b/src/router/index.js index 545e2de9..24f9fa1b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,25 +1,49 @@ -import layout from '../views/Main.vue' -import Login from '../views/shequ/index.vue' +import login from '@/views/login/login.vue' +import main from '../views/Main.vue' +import recommend from '@/views/recommend/index.vue' +import community from '@/views/community/trends.vue' +import chat from '@/views/chat/chat.vue' +import space from '@/views/space/space.vue' + import {createRouter ,createWebHashHistory} from 'vue-router' const routes = [ - { - path:'/', - component : layout + path : '/', + component : login }, - { - path : '/login', - component : Login - } + path:'/main', + component : main, + children:[ + { + path:'recommend', + component: recommend + }, + { + path:'community', + component: community + }, + { + path:'chat', + component: chat + }, + { + path:'space', + component: space + } + + + ] + }, + ] -const router = createRouter({ +const router = createRouter({ routes, history:createWebHashHistory() - }) + export default router \ No newline at end of file diff --git a/src/views/Main.vue b/src/views/Main.vue index 7ddd23a0..e99685b3 100644 --- a/src/views/Main.vue +++ b/src/views/Main.vue @@ -4,15 +4,14 @@ - aa - - + + + + +
@@ -25,7 +24,7 @@ \ No newline at end of file diff --git a/src/views/community/trends.vue b/src/views/community/trends.vue new file mode 100644 index 00000000..90618980 --- /dev/null +++ b/src/views/community/trends.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/views/login/login.vue b/src/views/login/login.vue new file mode 100644 index 00000000..c3b9539e --- /dev/null +++ b/src/views/login/login.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/views/recommend/index.vue b/src/views/recommend/index.vue new file mode 100644 index 00000000..75f6d5d8 --- /dev/null +++ b/src/views/recommend/index.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/views/shequ/index.vue b/src/views/shequ/index.vue deleted file mode 100644 index 6d9d3d63..00000000 --- a/src/views/shequ/index.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/space/space.vue b/src/views/space/space.vue new file mode 100644 index 00000000..d33f715b --- /dev/null +++ b/src/views/space/space.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file