| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { defineComponent } from 'vue'; |
| | | import { ElConfigProvider } from 'element-plus'; |
| | | import zhCn from 'element-plus/dist/locale/zh-cn.mjs'; |
| | | import { mapState } from 'pinia'; |
| | | import store from '@/store'; |
| | | import { defineComponent } from 'vue'; |
| | | import { ElConfigProvider } from 'element-plus'; |
| | | import zhCn from 'element-plus/dist/locale/zh-cn.mjs'; |
| | | import { mapState } from 'pinia'; |
| | | import store from '@/store'; |
| | | |
| | | export default defineComponent({ |
| | | components: { |
| | | ElConfigProvider |
| | | }, |
| | | computed: { |
| | | ...mapState(store.app, ['size']) |
| | | }, |
| | | data() { |
| | | return { |
| | | locale: zhCn, |
| | | zIndex: 3000 |
| | | }; |
| | | } |
| | | }); |
| | | export default defineComponent({ |
| | | components: { |
| | | ElConfigProvider |
| | | }, |
| | | computed: { |
| | | ...mapState(store.app, ['size']), |
| | | ...mapState(store.ukey, ['isIn', 'connect']) |
| | | }, |
| | | data() { |
| | | return { |
| | | locale: zhCn, |
| | | zIndex: 3000 |
| | | }; |
| | | }, |
| | | |
| | | watch: { |
| | | isIn(isIn) { |
| | | store.ukey().changeId(isIn); |
| | | }, |
| | | connect(connect) { |
| | | store.ukey().checkIsIn(connect); |
| | | } |
| | | }, |
| | | mounted() { |
| | | store.ukey().load(true); |
| | | }, |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import "@/styles/element/index.scss"; |
| | | @use "@/styles/element/index.scss"; |
| | | |
| | | html, |
| | | body, |
| | | #app { |