Commit 8b7e48a7 by zsh

更新App.vue

parent 81801467
......@@ -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>
......
......@@ -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
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