no message
Former-commit-id: 8e98a0b4b2edb656220d9af244c018c7378eee8e Former-commit-id: 2b5a9bbde5dcc2789167635fb047ac5456d2905c Former-commit-id: 5a85965e717c200bfde3d06551413035018579d7
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState, mapMutations } from 'vuex'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -41,6 +42,19 @@ export default {
|
||||
border: true
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
themeName: state => state.theme.themeName
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
...mapMutations([
|
||||
'setTheme'
|
||||
])
|
||||
},
|
||||
mounted () {
|
||||
this.setTheme('d2')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -44,15 +44,12 @@ export default {
|
||||
// [侧边栏宽度] 折叠状态
|
||||
asideWidthCollapse: '65px'
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
document.body.className = 'theme-star'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// 主题
|
||||
@import '~@/assets/style/theme/d2admin/index.scss';
|
||||
@import '~@/assets/style/theme/d2/index.scss';
|
||||
@import '~@/assets/style/theme/star/index.scss';
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user