【代码优化】移除无用的,优化代码排版

This commit is contained in:
YunaiV
2025-04-12 12:45:28 +08:00
parent 3f5681be6c
commit 379ca2373c
13 changed files with 15 additions and 64 deletions

View File

@@ -312,8 +312,8 @@ const doSocialLogin = async (type: number) => {
}
}
// 计算 redirectUri
// tricky: type、redirect需要先encode一次否则钉钉回调会丢失。
// 配合 Login/SocialLogin.vue#getUrlValue() 使用
// 注意: type、redirect 需要先 encode 一次,否则钉钉回调会丢失。
// 配合 social-login.vue#getUrlValue() 使用
const redirectUri =
location.origin +
'/social-login?' +

View File

@@ -449,7 +449,6 @@ const handleChangeState = async (row: any) => {
try {
// 修改状态的二次确认
const id = row.id
debugger
const statusState = state === 1 ? '停用' : '启用'
const content = '是否确认' + statusState + '流程名字为"' + row.name + '"的数据项?'
await message.confirm(content)

View File

@@ -62,8 +62,12 @@
</el-row>
<!-- 操作 -->
<template #footer>
<el-button :disabled="tableList.length === 0 || dbTableLoading" type="primary" @click="handleImportTable">
导入
<el-button
:disabled="tableList.length === 0 || dbTableLoading"
type="primary"
@click="handleImportTable"
>
导入
</el-button>
<el-button @click="close">关闭</el-button>
</template>

View File

@@ -132,7 +132,6 @@ defineExpose({ open, close: () => (dialogVisible.value = false) })
/** 提交表单 */
const emit = defineEmits(['success'])
const submitForm = async () => {
debugger
await formRef.value.validate()
formLoading.value = true
try {