style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -85,12 +85,13 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup >
|
||||
import { ref, onMounted } from 'vue'
|
||||
<script setup>
|
||||
import {onMounted, ref} from 'vue'
|
||||
import useUserStore from '@/store/modules/user';
|
||||
import { add, update,getLocationTree } from '../api';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { components } from '@/template';
|
||||
import {add, getLocationTree, update} from '../api';
|
||||
import {ElMessage} from 'element-plus';
|
||||
import {components} from '@/template';
|
||||
|
||||
const emits = defineEmits(['submitOk'])
|
||||
const props = defineProps({
|
||||
title: {
|
||||
|
||||
@@ -78,9 +78,9 @@
|
||||
</template>
|
||||
<script setup>
|
||||
// 从Vue导入所需的API
|
||||
import { ref, reactive, onMounted, defineAsyncComponent, nextTick, watch } from 'vue';
|
||||
import { ElMessageBox, ElMessage, ElLoading, ElTree } from 'element-plus';
|
||||
import { getTreeList, init, getDefinitionById, deleteDefinition,getLocationTree } from './api';
|
||||
import {nextTick, onMounted, reactive, ref} from 'vue';
|
||||
import {ElLoading, ElMessage, ElMessageBox, ElTree} from 'element-plus';
|
||||
import {deleteDefinition, getDefinitionById, getLocationTree, getTreeList, init} from './api';
|
||||
import EditTemplate from './components/editTemplate.vue';
|
||||
// 添加当前模板路径和组件的响应式变量
|
||||
const currentComponent = ref('');
|
||||
|
||||
Reference in New Issue
Block a user