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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import logoUrl from '@/assets/logo-full.svg'
|
import logoUrl from '@/assets/logo-full.svg'
|
||||||
import {mapState} from 'vuex'
|
import {useStore} from 'vuex'
|
||||||
|
import {computed} from 'vue'
|
||||||
|
|
||||||
export default {
|
const store = useStore()
|
||||||
name: 'no-auth-wrapper',
|
const motd = computed(() => store.state.config.motd)
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
logoUrl,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: mapState({
|
|
||||||
motd: state => state.config.motd,
|
|
||||||
}),
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Reference in New Issue