|
@@ -44,6 +44,11 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: "App",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ type: this.$route.query.type,
|
|
|
+ };
|
|
|
+ },
|
|
|
created() {
|
|
|
//在页面加载时读取sessionStorage里的状态信息
|
|
|
if (sessionStorage.getItem("store")) {
|
|
@@ -92,7 +97,9 @@
|
|
|
.catch((err) => {
|
|
|
// _this.props.history.push("/login");
|
|
|
// window.alert(err.response.data)
|
|
|
- window.location.href = "https://edu.cocorobo.cn/course/login?type=1";
|
|
|
+ var type = this.type
|
|
|
+ localStorage.setItem("type",type)
|
|
|
+ window.location.href = "https://edu.cocorobo.cn/course/login?type=1&UnityType="+type;
|
|
|
});
|
|
|
},
|
|
|
logout() {
|