mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 01:46:45 +08:00
feat:修改跳转
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="faceteachnocommon">
|
||||
<ReturnHead text="课程详情"></ReturnHead>
|
||||
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||
|
||||
<div class="main">
|
||||
<div class="title">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="faceteachnocourse">
|
||||
<ReturnHead text="课程详情"></ReturnHead>
|
||||
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||
|
||||
<div class="main">
|
||||
<div class="title">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:showfile="true"
|
||||
:courseId="projectId || courseId"
|
||||
:type="1"
|
||||
:gohome="type == 1 ? true : false"
|
||||
></ReturnHead>
|
||||
<div class="main">
|
||||
<div class="up">
|
||||
|
||||
Reference in New Issue
Block a user