App.vue 1.61 KB
<template>
  <!-- <div id="app" class="dark-theme white-theme"> -->
  <div id="app" :class="{'white-theme':theme=='white','dark-theme':theme=='dark'}">
    <router-view/>
  </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: 'App',
  data(){
    return {
      ctheme:'dark'
    }
  },
  computed:{
    ...mapState(['theme'])
  },
  watch: {
    theme(val){
      this.theme = val
      localStorage.setItem('theme',val)
    }
  },
}
</script>

<style>
#app {
  font-family: "微软雅黑",Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
}
 .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 120px;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 120px;
    height: 120px;
    line-height: 120px!important;
    text-align: center;
  }
  .avatar {
    width: 120px;
    height: 120px;
    display: block;
  }
  .chartTitle{
        position: absolute;
        color: #444;
        padding-right: 20px;
        left: 26px;
        top: 16px;
        font-weight: 400;
        font-size: 18px;
  }
  .chartBox{
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
  }
  .radioBox{
        position: absolute;
        font-size: 13px;
        z-index: 1;
        left: 50%;
        top: 16px;
        transform: translateX(-50%);
  }
  .noBackGround{
    background: none!important;
  }
</style>