Browse Source

read mode
阅读模式

star7th 5 years ago
parent
commit
240deef02e

+ 1 - 1
web/index.html

@@ -16,4 +16,4 @@
       "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
       //"lang" :'en'
       "lang" :'zh-cn'
-  }</script><link href=./static/css/app.9d7bd3912a73a91d44eae57a01729a3d.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.a6098e82988b4636789a.js></script><script type=text/javascript src=./static/js/app.e9a9f4d11397c5564db7.js></script></body></html>
+  }</script><link href=./static/css/app.021f64f27b50c95fc321e878f6cd43bc.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.a6098e82988b4636789a.js></script><script type=text/javascript src=./static/js/app.c856187446a4ee7b1d65.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
web/static/css/app.021f64f27b50c95fc321e878f6cd43bc.css


File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.c856187446a4ee7b1d65.js


File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.e9a9f4d11397c5564db7.js


+ 12 - 5
web_src/src/components/item/show/show_regular_item/Index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="hello">
+  <div class="hello" v-if="showComp">
     <Header></Header>
     <div id="header"></div>
 
@@ -102,7 +102,8 @@ export default {
       attachment_count: '',
       fullPage: false,
       showfullPageBtn: false,
-      showToc: true
+      showToc: true,
+      showComp:true
     }
   },
   components: {
@@ -138,6 +139,7 @@ export default {
               : ''
           // 切换变量让它重新加载、渲染子组件
           that.page_id = 0
+          that.item_info.default_page_id = page_id
           that.$nextTick(() => {
             that.page_id = page_id
             // 页面回到顶部
@@ -197,8 +199,11 @@ export default {
     clickFullPage() {
       // 点击放大页面。由于历史包袱,只能操作dom。这是不规范的,但是现在没时间重构整块页面
       if (this.fullPage) {
-        // 整体刷新还原
-        window.location.reload()
+        // 通过v-if指令起到刷新组件的作用
+          this.showComp = false
+          this.$nextTick(() => {
+            this.showComp = true
+          })
       } else {
         this.adaptToMobile()
           // 切换变量让它重新加载、渲染子组件
@@ -210,11 +215,13 @@ export default {
               $('.editormd-html-preview').css("font-size","16px")
             },200)
           })
-        this.fullPage = !this.fullPage
+        
         $('#left-side').hide()
         $('.op-bar').hide();
       }
 
+    this.fullPage = !this.fullPage
+
     }
   },
   mounted() {

Some files were not shown because too many files changed in this diff