style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -98,21 +98,16 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { ElMessageBox } from 'element-plus';
|
||||
import { Bell } from '@element-plus/icons-vue';
|
||||
import Breadcrumb from '@/components/Breadcrumb';
|
||||
import TopNav from '@/components/TopNav';
|
||||
import Hamburger from '@/components/Hamburger';
|
||||
import Screenfull from '@/components/Screenfull';
|
||||
import SizeSelect from '@/components/SizeSelect';
|
||||
import {onMounted, ref} from 'vue';
|
||||
import {ElMessageBox} from 'element-plus';
|
||||
import {Bell} from '@element-plus/icons-vue';
|
||||
import HeaderSearch from '@/components/HeaderSearch';
|
||||
import NoticePanel from '@/components/NoticePanel';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import useSettingsStore from '@/store/modules/settings';
|
||||
import { getOrg, switchOrg } from '@/api/login';
|
||||
import { getUnreadCount } from '@/api/system/notice';
|
||||
import {getOrg, switchOrg} from '@/api/login';
|
||||
import {getUnreadCount} from '@/api/system/notice';
|
||||
|
||||
const appStore = useAppStore();
|
||||
const userStore = useUserStore();
|
||||
|
||||
@@ -79,14 +79,10 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import variables from '@/assets/styles/variables.module.scss'
|
||||
import axios from 'axios'
|
||||
import { ElLoading, ElMessage } from 'element-plus'
|
||||
import { useDynamicTitle } from '@/utils/dynamicTitle'
|
||||
import useAppStore from '@/store/modules/app'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import usePermissionStore from '@/store/modules/permission'
|
||||
import { handleThemeStyle } from '@/utils/theme'
|
||||
import {handleThemeStyle} from '@/utils/theme'
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const appStore = useAppStore()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { isExternal } from '@/utils/validate'
|
||||
import {isExternal} from '@/utils/validate'
|
||||
|
||||
const props = defineProps({
|
||||
to: {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<script setup>
|
||||
import variables from '@/assets/styles/variables.module.scss';
|
||||
import useSettingsStore from '@/store/modules/settings';
|
||||
import { ref, computed } from 'vue';
|
||||
import {computed, ref} from 'vue';
|
||||
|
||||
defineProps({
|
||||
collapse: {
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { isExternal } from '@/utils/validate'
|
||||
import {isExternal} from '@/utils/validate'
|
||||
import AppLink from './Link'
|
||||
import { getNormalPath } from '@/utils/openhis'
|
||||
import {getNormalPath} from '@/utils/openhis'
|
||||
|
||||
const props = defineProps({
|
||||
// route object
|
||||
|
||||
@@ -42,11 +42,10 @@ import variables from '@/assets/styles/variables.module.scss';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import useSettingsStore from '@/store/modules/settings';
|
||||
import usePermissionStore from '@/store/modules/permission';
|
||||
import { computed, ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { Navbar, Settings } from '@/layout/components';
|
||||
import {computed, ref} from 'vue';
|
||||
import {useRoute} from 'vue-router';
|
||||
import {Navbar, Settings} from '@/layout/components';
|
||||
|
||||
import defaultSettings from '@/settings';
|
||||
const route = useRoute();
|
||||
const appStore = useAppStore();
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
@@ -41,13 +41,10 @@
|
||||
|
||||
<script setup>
|
||||
import ScrollPane from './ScrollPane';
|
||||
import { getNormalPath } from '@/utils/openhis';
|
||||
import {getNormalPath} from '@/utils/openhis';
|
||||
import useTagsViewStore from '@/store/modules/tagsView';
|
||||
import useSettingsStore from '@/store/modules/settings';
|
||||
import usePermissionStore from '@/store/modules/permission';
|
||||
import { toRaw } from 'vue';
|
||||
import { toArray } from 'lodash';
|
||||
import { toReactive, toRef } from '@vueuse/core';
|
||||
|
||||
const visible = ref(false);
|
||||
const top = ref(0);
|
||||
|
||||
Reference in New Issue
Block a user