Skip to content

Commit 7947da1

Browse files
committed
修复新特性徽章显示问题
1 parent b0ff47c commit 7947da1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/views/features/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</template>
3333

3434
<script>
35+
import { mapMutations } from 'vuex'
3536
import localStorage from '@utils/local-storage'
3637
export default {
3738
name: 'Features',
@@ -45,13 +46,15 @@ export default {
4546
this.getRelease()
4647
},
4748
methods: {
49+
...mapMutations(['setHasNewFeatures']),
4850
getRelease() {
4951
// 获取仓库版本列表和详情
5052
this.$http.repoRelease().then((res) => {
5153
this.loading = false
5254
this.release = res
5355
// 将用户看到的最新版本存入localStorage中
5456
localStorage.set('latestViewVersion', res[0].tag_name)
57+
this.setHasNewFeatures(false)
5558
})
5659
},
5760
jumpTo(url) {
@@ -70,7 +73,7 @@ export default {
7073
@include animation(fade-bottom, 0.3s, 0.3s, ease, forwards);
7174
}
7275
}
73-
@include screenLG {
76+
@include PC {
7477
#features {
7578
min-height: 100vh;
7679
.feature-list {

0 commit comments

Comments
 (0)