瀏覽代碼

添加动态title

zweizhao 7 年之前
父節點
當前提交
f3c12c7422
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      pages/index/cert/index.vue

+ 9 - 0
pages/index/cert/index.vue

@@ -33,9 +33,18 @@ let page = 1
 export default {
   data() {
     return {
+      title: '开发者资质认证- 程序员客栈',
       list: [],
     }
   },
+  head () {
+    return {
+      title: this.title,
+      meta: [
+        { hid: 'description', name: 'description', content: 'My custom description' }
+      ]
+    }
+  },
   mounted() {
     this.getList()
   },