Authored by yyq

ssr title

@@ -43,14 +43,7 @@ export default { @@ -43,14 +43,7 @@ export default {
43 if (this.title) { 43 if (this.title) {
44 let title = this.title; 44 let title = this.title;
45 setTitle(title); 45 setTitle(title);
46 -  
47 - if (!window.WindVane) {  
48 - setTimeout(() => {  
49 this.$xianyu.setXianyuTitle({ title }); 46 this.$xianyu.setXianyuTitle({ title });
50 - }, 1000);  
51 - } else {  
52 - this.$xianyu.setXianyuTitle({ title });  
53 - }  
54 } 47 }
55 }, 100); 48 }, 100);
56 49
@@ -162,6 +162,7 @@ const render = (route) => { @@ -162,6 +162,7 @@ const render = (route) => {
162 } 162 }
163 163
164 const result = template({ 164 const result = template({
  165 + title: context.title || '',
165 html, 166 html,
166 styles, 167 styles,
167 scripts, 168 scripts,