feat:修改跳转等问题

This commit is contained in:
lixg
2023-02-19 15:41:58 +08:00
31 changed files with 2526 additions and 318 deletions

View File

@@ -425,11 +425,12 @@ const downloads = (url) => {
};
function formateArr(strs) {
console.log("strs", strs);
let newArr = [];
try {
newArr = JSON.parse(strs);
} catch {
newArr = strs.split(",");
newArr = strs ? strs.split(",") : [];
}
console.log("112233", newArr);
return newArr;
@@ -580,7 +581,10 @@ function toExamItem(obj) {
}
console.log("obj", obj.examinationTestId);
window.open(
import.meta.env.VITE_BOE_EXAM_DETAIL_URL + obj.examinationTestId,
window.location.protocol +
import.meta.env.VITE_BOE_EXAM_DETAIL_URL +
"/mobile/pages/exam/exam?id=" +
obj.examinationTestId,
"_top"
); //测评
// router.push({ path: import.meta.env.VITE_BOE_EXAM_DETAIL_URL+ obj.examinationTestId });