Commit 66ddf88d by 姜雷

修改顶部标题显示页面标题

parent 7cebc2fc
<template>
<div id="app">
<app-layout v-if="isInnerPage">
<app-layout
v-if="isInnerPage"
:title="title"
>
<div
class="AppTopBar"
slot="title"
......@@ -67,6 +70,7 @@ export default {
},
data() {
return {
title: '',
selectedRoute: [],
routerDone: false,
isInnerPage: true,
......@@ -86,6 +90,7 @@ export default {
} else {
this.showComponents();
}
this.title = document.title;
},
watch: {
$route(newVal) {
......
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