Authored by ityuany

个人中心 新增回到首页

@@ -60,6 +60,8 @@ @@ -60,6 +60,8 @@
60 </div> 60 </div>
61 </cube-scroll> 61 </cube-scroll>
62 62
  63 + <ReplaceToHome :scrolling="scrolling"></ReplaceToHome>
  64 +
63 <a v-if="isOwner" class="publish hover-opacity" :class="{'scroll-hide': scrolling}" :href="publishUrl || 'javascript:;'" @click="toDownloadPage"> 65 <a v-if="isOwner" class="publish hover-opacity" :class="{'scroll-hide': scrolling}" :href="publishUrl || 'javascript:;'" @click="toDownloadPage">
64 <span class="publish-icon"></span> 66 <span class="publish-icon"></span>
65 发布 67 发布
@@ -77,6 +79,7 @@ import WaterFall from './scroll-reveal'; @@ -77,6 +79,7 @@ import WaterFall from './scroll-reveal';
77 import YAS from 'utils/yas-constants'; 79 import YAS from 'utils/yas-constants';
78 80
79 import {createNamespacedHelpers, mapState} from 'vuex'; 81 import {createNamespacedHelpers, mapState} from 'vuex';
  82 +import ReplaceToHome from '../../../components/replace-to-home/replace-to-home';
80 const {mapState: articleMapState, mapMutations: articleMapMutations} = createNamespacedHelpers('article'); 83 const {mapState: articleMapState, mapMutations: articleMapMutations} = createNamespacedHelpers('article');
81 const {mapActions: userMapActions} = createNamespacedHelpers('user'); 84 const {mapActions: userMapActions} = createNamespacedHelpers('user');
82 85
@@ -486,6 +489,7 @@ export default { @@ -486,6 +489,7 @@ export default {
486 } 489 }
487 }, 490 },
488 components: { 491 components: {
  492 + ReplaceToHome,
489 CubeScroll: Scroll, 493 CubeScroll: Scroll,
490 Loading, 494 Loading,
491 FavTabBlock, 495 FavTabBlock,