fix: MsgConfirm distinguishCancelAndClose
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
wangdan-fit2cloud 2025-02-26 12:54:58 +08:00
parent eb6f4e8cb8
commit 62ab02ec0e
3 changed files with 12 additions and 9 deletions

View File

@ -28,16 +28,16 @@ export default {
},
form: {
appName: {
label: '应用名称',
label: '名称',
placeholder: '请输入应用名称',
requiredMessage: '请输入应用名称'
},
appDescription: {
label: '应用描述',
label: '描述',
placeholder: '描述该应用的应用场景及用途XXX 小助手回答用户提出的 XXX 产品使用问题'
},
appType: {
label: '选择应用类型',
label: '类型',
simplePlaceholder: '适合新手创建小助手',
workflowPlaceholder: '适合高级用户自定义小助手的工作流'
},

View File

@ -28,16 +28,16 @@ export default {
},
form: {
appName: {
label: '應用名稱',
label: '名稱',
placeholder: '請輸入應用名稱',
requiredMessage: '請輸入應用名稱'
},
appDescription: {
label: '應用描述',
label: '描述',
placeholder: '描述該應用的應用場景及用途XXX 小助手回答用戶提出的 XXX 產品使用問題'
},
appType: {
label: '選擇應用類型',
label: '類型',
simplePlaceholder: '適合新手建立小助手',
workflowPlaceholder: '適合高階用戶自訂小助手的工作流程'
},

View File

@ -136,6 +136,7 @@
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, computed, nextTick } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import type { Action } from 'element-plus'
import Workflow from '@/workflow/index.vue'
import DropdownMenu from '@/views/application-workflow/component/DropdownMenu.vue'
import PublishHistory from '@/views/application-workflow/component/PublishHistory.vue'
@ -147,6 +148,7 @@ import useStore from '@/stores'
import { WorkFlowInstance } from '@/workflow/common/validate'
import { hasPermission } from '@/utils/permission'
import { t } from '@/locales'
const { user, application } = useStore()
const router = useRouter()
const route = useRoute()
@ -177,13 +179,14 @@ function back() {
MsgConfirm(t('common.tip'), t('views.applicationWorkflow.tip.saveMessage'), {
confirmButtonText: t('views.applicationWorkflow.setting.exitSave'),
cancelButtonText: t('views.applicationWorkflow.setting.exit'),
type: 'warning'
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
saveApplication(true, true)
})
.catch(() => {
router.push({ path: `/application/${id}/WORK_FLOW/overview` })
.catch((action: Action) => {
action === 'cancel' && router.push({ path: `/application/${id}/WORK_FLOW/overview` })
})
}
function clickoutsideHistory() {