feat:修改跳转

This commit is contained in:
lixg
2023-03-08 18:07:23 +08:00
parent 70e21510a5
commit feb217e1d1
8 changed files with 15 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
import { getCookie } from "@/api/utils";
import { USER_INFO } from "@/api/api";
console.log("版本2.1.8------------");
console.log("版本2.1.9------------");
const store = useStore();
const router = useRouter();

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-16 17:26:39
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-08 17:27:40
* @LastEditTime: 2023-03-08 18:01:49
* @FilePath: /stu_h5/src/components/ReturnHead.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -84,16 +84,16 @@ export default {
type: Number,
default: null,
},
gohome: {
type: Boolean,
default: false,
},
},
setup(props, ctx) {
const router = useRouter();
const returnclick = () => {
console.log(
"window.history",
window.history,
import.meta.env.VITE_BOE_STUDY
);
if (window.history.length <= 1) {
console.log("props.gohome", props.gohome, import.meta.env.VITE_BOE_STUDY);
if (props.gohome) {
window.open(import.meta.env.VITE_BOE_STUDY, "_top");
} else {
router.back(-1);

View File

@@ -1,6 +1,6 @@
<template>
<div class="faceteach">
<ReturnHead text="课程详情"></ReturnHead>
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
<TitleHead :text="'【面授课】' + data.planDto?.name"></TitleHead>
<div class="main">
<div class="title">

View File

@@ -1,6 +1,6 @@
<template>
<div class="faceteachnocommon">
<ReturnHead text="课程详情"></ReturnHead>
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
<div class="main">
<div class="title">

View File

@@ -1,6 +1,6 @@
<template>
<div class="faceteachnocourse">
<ReturnHead text="课程详情"></ReturnHead>
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
<div class="main">
<div class="title">

View File

@@ -1,6 +1,6 @@
<template>
<div class="faceteachsignup">
<ReturnHead text="课程详情"></ReturnHead>
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
<div class="main">
<div class="title">
<div class="faceteachimgname">

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-19 14:59:34
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-04 20:57:49
* @LastEditTime: 2023-03-08 17:52:46
* @FilePath: /stu_h5/src/views/pathmap/LevelList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -12,6 +12,7 @@
text="路径详情"
:showfile="true"
:courseId="routerId"
:gohome="true"
></ReturnHead>
<!-- 学习路径介绍 -->
<div class="pathdetail">

View File

@@ -5,6 +5,7 @@
:showfile="true"
:courseId="projectId || courseId"
:type="1"
:gohome="type == 1 ? true : false"
></ReturnHead>
<div class="main">
<div class="up">