Commit 8b7e48a7 by zsh

更新App.vue

parent 81801467
...@@ -2,8 +2,12 @@ ...@@ -2,8 +2,12 @@
<div id="app" <div id="app"
:style="{width: designWidth + 'px', height: designHeight + 'px'}" :style="{width: designWidth + 'px', height: designHeight + 'px'}"
> >
<page-header />
<div class="app-container">
<router-view></router-view> <router-view></router-view>
</div> </div>
</div>
</template> </template>
<script> <script>
......
...@@ -2,6 +2,8 @@ import mixins from '../mixins' ...@@ -2,6 +2,8 @@ import mixins from '../mixins'
// Vue插件(Vue plugin) // Vue插件(Vue plugin)
import ContentContainer from 'components/ContentContainer' import ContentContainer from 'components/ContentContainer'
// 头部标题
import Header from 'components/Header'
const UsePlugin = {} const UsePlugin = {}
...@@ -15,6 +17,8 @@ UsePlugin.install = function (Vue, options = {}) { ...@@ -15,6 +17,8 @@ UsePlugin.install = function (Vue, options = {}) {
Vue.mixin(mixins) Vue.mixin(mixins)
// 内容容器 // 内容容器
Vue.component('content-container', ContentContainer) Vue.component('content-container', ContentContainer)
// 页面头部标题
Vue.component('page-header', Header)
} }
export default UsePlugin export default UsePlugin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment