路由修改解决新建卡顿问题

This commit is contained in:
XaoLi717 2024-12-23 10:43:27 +08:00
parent 1e19b78512
commit 3fd1a93b0c
5 changed files with 5 additions and 5 deletions

View File

@ -125,7 +125,6 @@ import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
import {dateFormatter2} from '@/utils/formatTime' import {dateFormatter2} from '@/utils/formatTime'
import download from '@/utils/download' import download from '@/utils/download'
import { BgypApi, BgypVO } from '@/api/home/bgyp' import { BgypApi, BgypVO } from '@/api/home/bgyp'
import router from "@/router";
import * as LeaveApi from '@/api/bpm/leave' import * as LeaveApi from '@/api/bpm/leave'
/** 办公用品管理 列表 */ /** 办公用品管理 列表 */
@ -170,6 +169,7 @@ const getList = async () => {
} }
} }
const router = useRouter() //
/**发起操作 */ /**发起操作 */
const handleCreate =async () => { const handleCreate =async () => {
await router.push({name: 'BgypCreate'}) await router.push({name: 'BgypCreate'})

View File

@ -161,7 +161,6 @@ import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
import download from '@/utils/download' import download from '@/utils/download'
import { ClglApi, ClglVO } from '@/api/home/clgl' import { ClglApi, ClglVO } from '@/api/home/clgl'
import ClglForm from './ClglForm.vue' import ClglForm from './ClglForm.vue'
import router from "@/router";
import * as LeaveApi from '@/api/bpm/leave' import * as LeaveApi from '@/api/bpm/leave'
import {dateFormatter2} from "@/utils/formatTime"; import {dateFormatter2} from "@/utils/formatTime";
@ -198,6 +197,7 @@ const queryParams = reactive({
const queryFormRef = ref() // const queryFormRef = ref() //
const exportLoading = ref(false) // const exportLoading = ref(false) //
const router = useRouter() //
/**发起操作 */ /**发起操作 */
const handleCreate =async () => { const handleCreate =async () => {
await router.push({name: 'ClglCreate'}) await router.push({name: 'ClglCreate'})

View File

@ -171,7 +171,6 @@ import { dateFormatter2} from '@/utils/formatTime'
import download from '@/utils/download' import download from '@/utils/download'
import { HyglApi, HyglVO } from '@/api/home/hygl' import { HyglApi, HyglVO } from '@/api/home/hygl'
import * as LeaveApi from '@/api/bpm/leave' import * as LeaveApi from '@/api/bpm/leave'
import router from "@/router";
/** 会议管理 列表 */ /** 会议管理 列表 */
defineOptions({ name: 'Hygl' }) defineOptions({ name: 'Hygl' })
@ -234,6 +233,7 @@ const handleDetail = (row: LeaveApi.LeaveVO) => {
}) })
} }
const router = useRouter() //
/**发起操作 */ /**发起操作 */
const handleCreate = () => { const handleCreate = () => {
router.push({ name: 'HyglCreate' }) router.push({ name: 'HyglCreate' })

View File

@ -156,7 +156,6 @@ import download from '@/utils/download'
import { JbglApi, JbglVO } from '@/api/home/jbgl' import { JbglApi, JbglVO } from '@/api/home/jbgl'
import JbglForm from './JbglForm.vue' import JbglForm from './JbglForm.vue'
import * as LeaveApi from '@/api/bpm/leave' import * as LeaveApi from '@/api/bpm/leave'
import router from "@/router";
/** 加班管理 列表 */ /** 加班管理 列表 */
defineOptions({ name: 'Jbgl' }) defineOptions({ name: 'Jbgl' })
@ -189,6 +188,7 @@ const queryParams = reactive({
const queryFormRef = ref() // const queryFormRef = ref() //
const exportLoading = ref(false) // const exportLoading = ref(false) //
const router = useRouter() //
/**发起操作 */ /**发起操作 */
const handleCreate = () => { const handleCreate = () => {
router.push({ name: 'JbglCreate' }) router.push({ name: 'JbglCreate' })

View File

@ -193,7 +193,6 @@ import download from '@/utils/download'
import { KqglApi, KqglVO } from '@/api/home/kqgl' import { KqglApi, KqglVO } from '@/api/home/kqgl'
import KqglForm from './KqglForm.vue' import KqglForm from './KqglForm.vue'
import * as LeaveApi from '@/api/bpm/leave' import * as LeaveApi from '@/api/bpm/leave'
import router from "@/router";
import {DICT_TYPE} from "@/utils/dict"; import {DICT_TYPE} from "@/utils/dict";
/** 考勤管理 列表 */ /** 考勤管理 列表 */
@ -221,6 +220,7 @@ const queryParams = reactive({
const queryFormRef = ref() // const queryFormRef = ref() //
const exportLoading = ref(false) // const exportLoading = ref(false) //
const router = useRouter() //
/**发起操作 */ /**发起操作 */
const handleCreate = () => { const handleCreate = () => {
router.push({ name: 'KqglCreate' }) router.push({ name: 'KqglCreate' })