refactor: 更新样式类名和优化页面跳转逻辑

This commit is contained in:
wangqiao
2025-08-30 17:08:37 +08:00
parent cb89a861c1
commit f6a1dc3513
2 changed files with 18 additions and 14 deletions

View File

@ -33,6 +33,7 @@
import type { TcreateReq } from '~/api/upnew/types'
import { create } from '~/api/upnew/index'
const router = useRouter() // 导入路由实例,用于跳转页面
const form = reactive<TcreateReq>({
activeName: '', // 标签
@ -92,10 +93,11 @@
if (code === 0) {
// 弹窗提示
ElMessage.success('操作成功')
router.back()
// 关闭弹窗
setTimeout(() => {
window.close()
}, 300)
// setTimeout(() => {
// window.close()
// }, 300)
}
})
.finally(() => {