star7th 7 gadi atpakaļ
vecāks
revīzija
4dc857f0e4

+ 2 - 0
server/Application/Api/Controller/ItemController.class.php

@@ -124,6 +124,7 @@ class ItemController extends BaseController {
             "item_id"=>$item_id ,
             "item_domain"=>$item['item_domain'] ,
             "is_archived"=>$item['is_archived'] ,
+            "item_name"=>$item['item_name'] ,
             "default_page_id"=>(string)$default_page_id ,
             "default_cat_id2"=>$default_cat_id2 ,
             "default_cat_id3"=>$default_cat_id3 ,
@@ -163,6 +164,7 @@ class ItemController extends BaseController {
             "item_id"=>$item_id ,
             "item_domain"=>$item['item_domain'] ,
             "is_archived"=>$item['is_archived'] ,
+            "item_name"=>$item['item_name'] ,
             "current_page_id"=>$current_page_id ,
             "unread_count"=>$unread_count ,
             "item_type"=>2 ,

+ 2 - 1
web_src/src/components/item/show/Index.vue

@@ -62,7 +62,7 @@
                 };
               };
               that.item_info = json ;
-
+              document.title = "ShowDoc--"+that.item_info.item_name ;
               if (json.unread_count > 0 ) {
                 that.$message({
                   showClose: true,
@@ -103,6 +103,7 @@
     this.$message.closeAll();
     /*去掉添加的背景色*/
     document.body.removeAttribute("class","grey-bg");
+    document.title = "ShowDoc" ;
   }
 };
 </script>