Commit 66ddf88d by 姜雷

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

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