2019-10-10 22:38:29 +08:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
ref="doc"
|
|
|
|
class="readme"
|
|
|
|
>
|
2019-10-18 23:45:23 +08:00
|
|
|
<private-readme v-if="token === 'naive'" />
|
|
|
|
<readme v-else />
|
2019-10-10 22:38:29 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import readme from './start.vue.md'
|
2019-10-18 23:45:23 +08:00
|
|
|
import privateReadme from './privateStart.vue.md'
|
2019-10-10 22:38:29 +08:00
|
|
|
import { replaceEmojiWithImages } from '../../utils'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2019-10-18 23:45:23 +08:00
|
|
|
readme,
|
|
|
|
privateReadme
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
token: null
|
|
|
|
}
|
2019-10-10 22:38:29 +08:00
|
|
|
},
|
|
|
|
mounted () {
|
|
|
|
replaceEmojiWithImages(this.$refs.doc)
|
2019-10-18 23:45:23 +08:00
|
|
|
this.token = localStorage.token
|
2019-10-10 22:38:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.readme {
|
|
|
|
padding: 24px 0 24px 0;
|
|
|
|
max-width: 720px;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
</style>
|