diff --git a/src/App.vue b/src/App.vue index 1091a7b..5855f9b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ - Home | - About + diff --git a/src/api/index.ts b/src/api/index.ts index cd8b1f2..82f4cb2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -18,3 +18,4 @@ export function getinfo(): Promise{ export function seninfo(data: object): Promise{ return post("b",data) } + diff --git a/src/components/login/LoginTab.vue b/src/components/login/LoginTab.vue new file mode 100644 index 0000000..effed23 --- /dev/null +++ b/src/components/login/LoginTab.vue @@ -0,0 +1,40 @@ + + + 手机号登录 + 账号密码登录 + + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index a6021e1..d616854 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,20 +1,26 @@ import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' import Home from '../views/Home.vue' - +import Login from "../views/login/Login.vue" const routes: Array = [ { path: '/', name: 'Home', component: Home }, + + // { + // path: '/about', + // name: 'About', + // // route level code-splitting + // // this generates a separate chunk (about.[hash].js) for this route + // // which is lazy-loaded when the route is visited. + // component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') + // } { - path: '/about', - name: 'About', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') - } + path: '/login', + name: 'Login', + component:Login + }, ] const router = createRouter({ diff --git a/src/views/About.vue b/src/views/About.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/About.vue +++ /dev/null @@ -1,5 +0,0 @@ - - - This is an about page - - diff --git a/src/views/Home.vue b/src/views/Home.vue index 5d17639..ea1ae8e 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,6 +1,6 @@ - + diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue new file mode 100644 index 0000000..0259f29 --- /dev/null +++ b/src/views/login/Login.vue @@ -0,0 +1,72 @@ + + + + + + 您好,欢迎来到 Beelink + + 还没有账号? 成为一名Beelink老师 + + + + + + + + + + + \ No newline at end of file diff --git a/static/loginbg.png b/static/loginbg.png new file mode 100644 index 0000000..b66ee9d Binary files /dev/null and b/static/loginbg.png differ diff --git a/yarn.lock b/yarn.lock index 4b4f37f..0519558 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7876,8 +7876,8 @@ sass-graph@2.2.5: sass-loader@^10.0.2: version "10.0.2" - resolved "https://registry.npm.taobao.org/sass-loader/download/sass-loader-10.0.2.tgz?cache=0&sync_timestamp=1599136698634&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsass-loader%2Fdownload%2Fsass-loader-10.0.2.tgz#c7b73010848b264792dd45372eea0b87cba4401e" - integrity sha1-x7cwEISLJkeS3UU3LuoLh8ukQB4= + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-10.0.2.tgz#c7b73010848b264792dd45372eea0b87cba4401e" + integrity sha512-wV6NDUVB8/iEYMalV/+139+vl2LaRFlZGEd5/xmdcdzQcgmis+npyco6NsDTVOlNA3y2NV9Gcz+vHyFMIT+ffg== dependencies: klona "^2.0.3" loader-utils "^2.0.0"