|
@@ -196,15 +196,18 @@ const getAllDomElements = async () => {
|
|
|
};
|
|
|
const goAdvice = async (name: string) => {
|
|
|
if (route.query.source == 3) {
|
|
|
- const idArr = route.query.pageId.split(",");
|
|
|
+ const idArr = route.query.pageId.split('|');
|
|
|
const dc = await devicesAndCategories({});
|
|
|
const devices = dc.data.devices;
|
|
|
const newOrder = devices.findIndex((item) => item == name);
|
|
|
idArr[2] = newOrder;
|
|
|
router.push({
|
|
|
- id: idArr.join('|'),
|
|
|
path: "/repair/MaintenanceStrategyAssistanceViewHis",
|
|
|
- type: 'auto',
|
|
|
+ query: {
|
|
|
+ id: idArr.join('|'),
|
|
|
+ name,
|
|
|
+ type: 'auto',
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
router.push({
|