mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 03:16:47 +08:00
-- 详情不打开新页面
This commit is contained in:
@@ -356,7 +356,7 @@ const types = ref({
|
|||||||
6: "/livebroadcast",
|
6: "/livebroadcast",
|
||||||
7: ({ courseId }) =>
|
7: ({ courseId }) =>
|
||||||
request(LINK_DETAILS(courseId), {}).then(({ data: { linkAddress } }) =>
|
request(LINK_DETAILS(courseId), {}).then(({ data: { linkAddress } }) =>
|
||||||
window.open(linkAddress)
|
window.open(linkAddress, '_self')
|
||||||
), //外联
|
), //外联
|
||||||
8: "/discusspage",
|
8: "/discusspage",
|
||||||
9: "/moreactive",
|
9: "/moreactive",
|
||||||
@@ -365,7 +365,7 @@ const types = ref({
|
|||||||
(evaType == 0
|
(evaType == 0
|
||||||
? import.meta.env.VITE_BOE_TEST_DETAIL_URL
|
? import.meta.env.VITE_BOE_TEST_DETAIL_URL
|
||||||
: import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId
|
: import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId
|
||||||
), //测评
|
,'_self'), //测评
|
||||||
11: "/surveydetail",
|
11: "/surveydetail",
|
||||||
12: "/ballotpage",
|
12: "/ballotpage",
|
||||||
13: "/projectdetails",
|
13: "/projectdetails",
|
||||||
@@ -457,7 +457,7 @@ function toFinish(d) {
|
|||||||
if (typeof types.value.path[d.type] === "string") {
|
if (typeof types.value.path[d.type] === "string") {
|
||||||
types.value.path[d.type] &&
|
types.value.path[d.type] &&
|
||||||
types.value.path[d.type].startsWith("http") &&
|
types.value.path[d.type].startsWith("http") &&
|
||||||
window.open(types.value.path[d.type] + d.targetId);
|
window.open(types.value.path[d.type] + d.targetId,'_self');
|
||||||
types.value.path[d.type] &&
|
types.value.path[d.type] &&
|
||||||
types.value.path[d.type].startsWith("/") &&
|
types.value.path[d.type].startsWith("/") &&
|
||||||
router.push({
|
router.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user