feat: use script setup for no auth wrapper
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
f2c8cdd3be
commit
699d5bdc88
|
@ -15,21 +15,13 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script setup>
|
||||
import logoUrl from '@/assets/logo-full.svg'
|
||||
import {mapState} from 'vuex'
|
||||
import {useStore} from 'vuex'
|
||||
import {computed} from 'vue'
|
||||
|
||||
export default {
|
||||
name: 'no-auth-wrapper',
|
||||
data() {
|
||||
return {
|
||||
logoUrl,
|
||||
}
|
||||
},
|
||||
computed: mapState({
|
||||
motd: state => state.config.motd,
|
||||
}),
|
||||
}
|
||||
const store = useStore()
|
||||
const motd = computed(() => store.state.config.motd)
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
Reference in New Issue