通讯链路:修改退出表格后返回首页问题
This commit is contained in:
parent
a837233c5d
commit
ba397c05af
@ -385,6 +385,9 @@ const init = () => {
|
||||
}
|
||||
}
|
||||
|
||||
if (router.currentRoute.value.query?.stopToFirstRoute) {
|
||||
return
|
||||
}
|
||||
// 跳转到第一个菜单
|
||||
let firstRoute = getFirstRoute(navTabs.state.tabsViewRoutes)
|
||||
if (firstRoute) routePush(firstRoute.path)
|
||||
|
@ -66,7 +66,7 @@ const staticRoutes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/univer',
|
||||
path: adminBaseRoutePath + '/univer',
|
||||
name: 'univer',
|
||||
component: () => import('/@/views/backend/node/univer.vue'),
|
||||
},
|
||||
|
@ -365,8 +365,8 @@ const tipsPos = reactive({
|
||||
const saveExcelData = () => {
|
||||
const data = getData()
|
||||
const val = createUpLoadExcelData(data)
|
||||
console.log(val);
|
||||
|
||||
console.log(val)
|
||||
|
||||
saveMappingList(val)
|
||||
}
|
||||
|
||||
@ -398,8 +398,8 @@ const getMappingList = () => {
|
||||
data.forEach((item) => {
|
||||
result = { ...result, ...item }
|
||||
})
|
||||
console.log(result);
|
||||
|
||||
console.log(result)
|
||||
|
||||
return result
|
||||
})
|
||||
}
|
||||
@ -467,11 +467,7 @@ const resetExcel = () => {
|
||||
}
|
||||
|
||||
const goToNodePage = () => {
|
||||
router.push({ path: route.query.prevPath as string })
|
||||
|
||||
// console.log(router.getRoutes());
|
||||
|
||||
// router.go(-1)
|
||||
router.push({ path: route.query.prevPath as string, query: { stopToFirstRoute: 1 } })
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user