|
@@ -16,7 +16,12 @@ import { openLogin, getSchoolInfo } from "../api";
|
|
export default {
|
|
export default {
|
|
name: "login-open",
|
|
name: "login-open",
|
|
data() {
|
|
data() {
|
|
- return {};
|
|
|
|
|
|
+ return {
|
|
|
|
+ functionalTypes: {
|
|
|
|
+ APPLY_MANAGE: "TaskApplyManage",
|
|
|
|
+ PAPER_MANAGE: "TaskPaperManage",
|
|
|
|
+ },
|
|
|
|
+ };
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.autoLogin();
|
|
this.autoLogin();
|
|
@@ -50,6 +55,14 @@ export default {
|
|
|
|
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
|
|
|
|
|
|
+ const functionalTypeRoute = this.functionalTypes[query.functionalType];
|
|
|
|
+ if (functionalTypeRoute) {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: functionalTypeRoute,
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (data.roleList && data.roleList.includes("ADMIN")) {
|
|
if (data.roleList && data.roleList.includes("ADMIN")) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: "SelectSchool",
|
|
name: "SelectSchool",
|