wenliming преди 3 години
родител
ревизия
cdecfa4280
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 1 1
      nuxt.config.js
  2. 3 0
      pages/index.vue

+ 1 - 1
nuxt.config.js

@@ -3,7 +3,7 @@ const env = require('./env')
 export default {
   // Global page headers: https://go.nuxtjs.dev/config-head
   head: {
-    title: 'de-net-official',
+    title: 'de-net-official1',
     htmlAttrs: {
       lang: 'en'
     },

+ 3 - 0
pages/index.vue

@@ -353,6 +353,9 @@ export default {
 	},
 
 	mounted() {
+		if (!this.detail.postId) {
+			return
+		}
 		//改变font-size
 		(function (doc, win) {
 			var docEI = doc.documentElement,