lsc 3 anni fa
parent
commit
de45bcf653

+ 1 - 1
dist/index.html

@@ -42,4 +42,4 @@
     height: 100%;
     width: 100%;
     background: #e6eaf0;
-  }</style><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.c45496ecc850f4852679.js></script><script type=text/javascript src=/static/js/app.3f0f82b20a1681be712d.js></script></body></html>
+  }</style><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.c45496ecc850f4852679.js></script><script type=text/javascript src=/static/js/app.3ac578b11d0a43e9768d.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3ac578b11d0a43e9768d.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3ac578b11d0a43e9768d.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3f0f82b20a1681be712d.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3f0f82b20a1681be712d.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.2ae2e69a05c33dfc65f8.js.map


+ 8 - 1
src/App.vue

@@ -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() {

+ 3 - 1
src/main.js

@@ -40,7 +40,9 @@ router.beforeEach((to, from, next) => {
         });
     })
     .catch((err) => {
-      window.location.href = "https://edu.cocorobo.cn/course/login?type=1";
+      // window.location.href = "https://edu.cocorobo.cn/course/login?type=1";
+      var type = localStorage.getItem("type")
+      window.location.href = "https://edu.cocorobo.cn/course/login?type=1&UnityType=" + type;
     });
   next();
 })

Some files were not shown because too many files changed in this diff