mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
40 lines
627 B
Vue
40 lines
627 B
Vue
<template>
|
|
<div
|
|
ref="doc"
|
|
class="readme"
|
|
>
|
|
<private-readme v-if="token === 'naive'" />
|
|
<readme v-else />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import readme from './start.vue.md'
|
|
import privateReadme from './privateStart.vue.md'
|
|
import { replaceEmojiWithImages } from '../../utils'
|
|
|
|
export default {
|
|
components: {
|
|
readme,
|
|
privateReadme
|
|
},
|
|
data () {
|
|
return {
|
|
token: null
|
|
}
|
|
},
|
|
mounted () {
|
|
replaceEmojiWithImages(this.$refs.doc)
|
|
this.token = localStorage.token
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.readme {
|
|
padding: 24px 0 24px 0;
|
|
max-width: 720px;
|
|
margin: auto;
|
|
}
|
|
</style>
|