Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
adminTest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-甘科
adminTest
Commits
ce7903ed
Commit
ce7903ed
authored
Jul 26, 2019
by
ganke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交一下新的代码
parent
0fb49591
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
3 deletions
+44
-3
HelloWorld.vue
src/components/HelloWorld.vue
+4
-1
head.vue
src/components/head.vue
+1
-1
side.vue
src/components/side.vue
+1
-1
index.js
src/router/index.js
+6
-0
login.vue
src/views/login/login.vue
+32
-0
No files found.
src/components/HelloWorld.vue
View file @
ce7903ed
<
template
>
<div>
<el-container>
<!-- 我是头部代码 -->
<el-header>
<comHead></comHead>
</el-header>
<el-container>
<!-- 这里是侧边的啦 -->
<el-aside
width=
"200px"
>
<side></side>
</el-aside>
<el-main>
<!-- 这里是视图部分的 -->
<router-view/>
</el-main>
</el-container>
...
...
@@ -24,7 +27,7 @@ export default {
side
,
comHead
},
name
:
'
HelloWorld
'
,
name
:
'
我是主体
'
,
data
()
{
return
{
activeKey
:
0
...
...
src/components/head.vue
View file @
ce7903ed
...
...
@@ -6,7 +6,7 @@
<
script
>
export
default
{
name
:
'
HelloWorld
'
,
name
:
'
我是头部代码
'
,
data
()
{
return
{
}
...
...
src/components/side.vue
View file @
ce7903ed
...
...
@@ -21,7 +21,7 @@
<
script
>
export
default
{
name
:
'
HelloWorld
'
,
name
:
'
我是侧边栏
'
,
data
()
{
return
{
activeKey
:
0
...
...
src/router/index.js
View file @
ce7903ed
import
Vue
from
'vue'
import
Router
from
'vue-router'
import
HelloWorld
from
'@/components/HelloWorld'
import
login
from
'@/views/login/login'
Vue
.
use
(
Router
)
...
...
@@ -60,6 +61,11 @@ export default new Router({
component
:
resolve
=>
require
([
'@/views/lala5'
],
resolve
)
// 路由懒加载
}
]
},
{
path
:
'/login'
,
name
:
'HelloWorld'
,
component
:
login
}
]
})
src/views/login/login.vue
0 → 100644
View file @
ce7903ed
<
template
>
<div
class=
"hear-main"
>
我这里是登录的啦
<button
@
click=
"fnJump"
>
登录成功lal
</button>
</div>
</
template
>
<
script
>
export
default
{
name
:
'我是头部代码'
,
data
()
{
return
{
}
},
methods
:
{
fnJump
()
{
this
.
$router
.
push
({
path
:
'/lala'
})
}
}
}
</
script
>
<
style
scoped
>
.hear-main
{
height
:
50px
;
background
:
#cccccc
;
line-height
:
50px
;
text-align
:
center
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment