mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复提示问题
This commit is contained in:
parent
ae3761349a
commit
b18da6b21e
|
|
@ -64,6 +64,7 @@ import useStore from '@/stores'
|
|||
const { dataset, document } = useStore()
|
||||
const baseInfo = computed(() => dataset.baseInfo)
|
||||
const webInfo = computed(() => dataset.webInfo)
|
||||
const documentsFiles = computed(() => dataset.documentsFiles)
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
|
@ -141,7 +142,7 @@ function submit() {
|
|||
}
|
||||
}
|
||||
function back() {
|
||||
if (baseInfo.value || webInfo.value || StepSecondRef.value?.paragraphList?.length > 0) {
|
||||
if (baseInfo.value || webInfo.value || documentsFiles.value?.length > 0) {
|
||||
MsgConfirm(`提示`, `当前的更改尚未保存,确认退出吗?`, {
|
||||
confirmButtonText: '确认',
|
||||
type: 'warning'
|
||||
|
|
|
|||
Loading…
Reference in New Issue