123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- 企业一张图
- <div class="main">
- </div>
- </template>
- <script lang="ts">
- import {
- defineComponent,
- computed,
- onMounted,
- ref,
- reactive,
- watch,
- getCurrentInstance,
- ComponentInternalInstance,
- toRefs,
- nextTick
- } from 'vue'
- import {useStore} from 'vuex'
- import {useRouter, useRoute} from 'vue-router'
- import {ElMessage, ElMessageBox} from "element-plus";
- export default defineComponent({
- name: '',
- components: {},
- props: {},
- setup(props, {emit}) {
- const store = useStore();
- const router = useRouter();
- const route = useRoute();
- const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
- const state = reactive({})
- onMounted(() => {
- })
- return {
- ...toRefs(state),
- }
- },
- })
- </script>
- <style scoped lang="scss">
- .main {
- width: 200px;
- height: 500px;
- background-color: red;
- }
- </style>
|