Commit c079d89e by yanju

删除预览功能

parent cffce5ff
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<nuxt-link tag="span" to="/blog/release">写博客</nuxt-link> <nuxt-link tag="span" to="/blog/release">写博客</nuxt-link>
</li> </li>
<li> <li>
<nuxt-link tag="span" to="/dynamic?type=all">发布动态</nuxt-link> <nuxt-link tag="span" to="/dynamic?type=new">发布动态</nuxt-link>
</li> </li>
<li> <li>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
<div class="answer-release__footer"> <div class="answer-release__footer">
<!-- <p>已自动存为草稿</p>--> <!-- <p>已自动存为草稿</p>-->
<button class="preview" @click="readScreen">预览</button> <!-- <button class="preview" @click="readScreen">预览</button>-->
<button class="submit" @click="dataPostQuestion">提交</button> <button class="submit" @click="dataPostQuestion">提交</button>
</div> </div>
</div> </div>
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</p> </p>
<div class="footer__right"> <div class="footer__right">
<!-- <p>已自动存为草稿</p>--> <!-- <p>已自动存为草稿</p>-->
<button class="preview" @click="preview">预览</button> <!-- <button class="preview" @click="preview">预览</button>-->
<button class="submit" v-on:click="dataPost">提交</button> <button class="submit" v-on:click="dataPost">提交</button>
</div> </div>
</div> </div>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<notice-card v-for="(val,index) in message" :key="val.messageId" :info="val"></notice-card> <notice-card v-for="(val,index) in message" :key="val.messageId" :info="val"></notice-card>
<empty-card v-if="message.length===0" height="556px"></empty-card> <empty-card v-if="message.length===0" height="556px"></empty-card>
<pagination style="margin: 0 auto;padding:20px 0;" :pages="pages" v-on:listenPageChange="changePage"></pagination> <pagination ref="pagination" style="margin: 0 auto;padding:20px 0;" :pages="pages" v-on:listenPageChange="changePage"></pagination>
</div> </div>
...@@ -104,14 +104,21 @@ ...@@ -104,14 +104,21 @@
}, },
restartPagination(){
if(process.browser){
this.$refs.pagination.setCurrentPage(1)
}
},
dataPutReadAll() { dataPutReadAll() {
this.$axios.$put(config.api.put.Message.readAll).then((response) => { this.$axios.$put(config.api.put.Message.readAll).then((response) => {
if(response.code===200){ if(response.code===0){
this.$message({ this.$message({
type: 'success', type: 'success',
message: '已全部标记已读' message: '已全部标记已读'
}); });
this.restartPagination();
} else { } else {
this.$message({ this.$message({
type: 'warning', type: 'warning',
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</p> </p>
<div class="footer__right"> <div class="footer__right">
<!-- <p>已自动存为草稿</p>--> <!-- <p>已自动存为草稿</p>-->
<button class="preview" >预览</button> <!-- <button class="preview" >预览</button>-->
<button class="submit" @click="postProject">提交</button> <button class="submit" @click="postProject">提交</button>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment