Verified Commit d2d12c03 authored by jxtxzzw's avatar jxtxzzw
Browse files

优化:移除未使用信息



Signed-off-by: jxtxzzw's avatarjxtxzzw <jxtxzzw@126.com>
parent e2f29d05
Pipeline #714 passed with stages
in 12 minutes and 31 seconds
......@@ -163,32 +163,14 @@
</template>
<script>
import { introduction, milestone } from 'assets/reader'
import { introduction } from 'assets/reader'
export default {
name: 'Introduction',
data() {
return {
introduction,
milestone,
distinctPlatform: [],
}
},
mounted() {
this.milestone = milestone.map((item) => {
if (!this.distinctPlatform.includes(item.platform)) {
this.distinctPlatform.push(item.platform)
}
return item
})
this.distinctPlatform.sort((a, b) => {
const A = this.milestone.filter((e) => e.platform === a).length
const B = this.milestone.filter((e) => e.platform === b).length
return B - A
})
this.milestone.sort((a, b) => {
return new Date(a) - new Date(b)
})
},
methods: {
maskedContent(content) {
return content == null ? this.$t('introduction.secret') : content
......
Supports Markdown
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