Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
JuyuanPrimarySchool
Overview
Overview
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
vue-project
JuyuanPrimarySchool
Commits
8b7e48a7
Commit
8b7e48a7
authored
Nov 15, 2021
by
zsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新App.vue
parent
81801467
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
App.vue
src/App.vue
+4
-0
index.js
src/public/plugins/index.js
+4
-0
No files found.
src/App.vue
View file @
8b7e48a7
...
...
@@ -2,8 +2,12 @@
<div
id=
"app"
:style=
"
{width: designWidth + 'px', height: designHeight + 'px'}"
>
<page-header
/>
<div
class=
"app-container"
>
<router-view></router-view>
</div>
</div>
</
template
>
<
script
>
...
...
src/public/plugins/index.js
View file @
8b7e48a7
...
...
@@ -2,6 +2,8 @@ import mixins from '../mixins'
// Vue插件(Vue plugin)
import
ContentContainer
from
'components/ContentContainer'
// 头部标题
import
Header
from
'components/Header'
const
UsePlugin
=
{}
...
...
@@ -15,6 +17,8 @@ UsePlugin.install = function (Vue, options = {}) {
Vue
.
mixin
(
mixins
)
// 内容容器
Vue
.
component
(
'content-container'
,
ContentContainer
)
// 页面头部标题
Vue
.
component
(
'page-header'
,
Header
)
}
export
default
UsePlugin
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