修改测试bug

This commit is contained in:
GGJ
2024-12-23 11:30:28 +08:00
parent b10854971d
commit 90efcc4ad2
20 changed files with 209 additions and 54 deletions

View File

@@ -97,7 +97,7 @@
<script lang="ts" setup>
import { ref, inject } from 'vue'
import { reactive } from 'vue'
import router from '@/router/index'
import { ElMessage } from 'element-plus'
const dialogVisible = ref(false)
const title = ref('')
@@ -203,6 +203,7 @@ const onSubmit = () => {
addTheme(form).then(res => {
ElMessage.success('新增成功')
Cancel()
})
}
if (title.value == '修改主题') {
@@ -214,8 +215,12 @@ const onSubmit = () => {
}
// 取消
const Cancel = () => {
// dialogVisible.value = false
emit('Cancels')
setTimeout(() => {
router.go(0)
}, 500);
}
/**
* 选择图片上传