| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | 
							- <template>
 
-   <a-config-provider :locale="locale">
 
-     <div id="app">
 
-       <router-view/>
 
-     </div>
 
-   </a-config-provider>
 
- </template>
 
- <script>
 
- import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
 
- import enquireScreen from '@/utils/device'
 
- export default {
 
-   data() {
 
-     return {
 
-       locale: zhCN,
 
-     }
 
-   },
 
-   created() {
 
-     let that = this
 
-     enquireScreen(deviceType => {
 
-       // tablet
 
-       if (deviceType === 0) {
 
-         that.$store.commit('TOGGLE_DEVICE', 'mobile')
 
-         that.$store.dispatch('setSidebar', false)
 
-       }
 
-       // mobile
 
-       else if (deviceType === 1) {
 
-         that.$store.commit('TOGGLE_DEVICE', 'mobile')
 
-         that.$store.dispatch('setSidebar', false)
 
-       } else {
 
-         that.$store.commit('TOGGLE_DEVICE', 'desktop')
 
-         that.$store.dispatch('setSidebar', true)
 
-       }
 
-     })
 
-   }
 
- }
 
- </script>
 
- <style>
 
- .ant-form-item .ant-form-item-label label{
 
-   overflow: hidden;
 
-   white-space: nowrap;
 
-   text-overflow: ellipsis;
 
-   display: block;
 
- }
 
- ul {
 
-   padding: 0;
 
- }
 
- ul > li {
 
-   list-style: none;
 
- }
 
- #app {
 
-   height: 100%;
 
- }
 
- .sidemenu{
 
-   display: flex;
 
-   flex-direction: column;
 
- }
 
- </style>
 
 
  |