refactor: 更新样式类名和优化页面跳转逻辑
This commit is contained in:
@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user