修改测试bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
/**
|
||||
* 选择图片上传
|
||||
|
||||
Reference in New Issue
Block a user