diff --git a/src/api/index.js b/src/api/index.js index e8a524a..d696bee 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -42,8 +42,8 @@ export default { getStaff: `management/staff/getStaff`, queryStaff: `management/staff/enterpriseList`, updateStaff: `management/staff/updateStaff`, - exportFailureStaff: `management/staff/exportFailure`, - uploadFileStaff: `management/staff/uploadFile`, + exportFailureStaff: `${Setting.apiBaseURL}/management/staff/exportFailure`, + uploadFileStaff: `${Setting.apiBaseURL}/management/staff/uploadFile`, downloadStaffTemp: `http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658763812.xlsx`, // 角色管理 @@ -70,8 +70,8 @@ export default { deleteUser: `cjEnterprise/user/deleteUser`, queryUser: `cjEnterprise/user/list`, updateUser: `cjEnterprise/user/updateUser`, - uploadFileUser: `cjEnterprise/user/uploadFile`, - exportFailureUser: `cjEnterprise/user/exportFailure`, + uploadFileUser: `${Setting.apiBaseURL}/cjEnterprise/user/uploadFile`, + exportFailureUser: `${Setting.apiBaseURL}/cjEnterprise/user/exportFailure`, downloadUserTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658619702.xlsx', // 题库分类 @@ -92,7 +92,7 @@ export default { pageByCondition:`cjEnterprise/questions/pageByCondition`, updateQuestions:`cjEnterprise/questions/update`, getExcel:`cjEnterprise/questions/getExcel`, - impExcel:`cjEnterprise/questions/impExcel`, + impExcel:`${Setting.apiBaseURL}/cjEnterprise/questions/impExcel`, // 共享相关 batchSave:`cjEnterprise/questionSharing/batchSave`, diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 66ae7a1..33aafd3 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -92,7 +92,7 @@ export default { password: this.loginForm.password } this.login(data).then(() => { - let redirect = decodeURIComponent(this.$route.query.redirect || '/') + let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index' this.$router.replace(redirect) }).catch(() => {}) } diff --git a/src/pages/client/add/index.vue b/src/pages/client/add/index.vue index c407ea4..488a4a5 100644 --- a/src/pages/client/add/index.vue +++ b/src/pages/client/add/index.vue @@ -1,70 +1,65 @@ diff --git a/src/pages/client/list/index.vue b/src/pages/client/list/index.vue index b014c55..22b0820 100644 --- a/src/pages/client/list/index.vue +++ b/src/pages/client/list/index.vue @@ -1,95 +1,89 @@ diff --git a/src/pages/exception/error/403/index.vue b/src/pages/exception/error/403/index.vue index 45adc1d..e6576d2 100644 --- a/src/pages/exception/error/403/index.vue +++ b/src/pages/exception/error/403/index.vue @@ -1,23 +1,26 @@ diff --git a/src/pages/exception/error/404/index.vue b/src/pages/exception/error/404/index.vue index 02b30ba..bbb8580 100644 --- a/src/pages/exception/error/404/index.vue +++ b/src/pages/exception/error/404/index.vue @@ -1,23 +1,26 @@ diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue index 6224a53..9b1f2a3 100644 --- a/src/pages/quesBank/list/globalQuesBank.vue +++ b/src/pages/quesBank/list/globalQuesBank.vue @@ -23,7 +23,7 @@
- +
diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue index a73171e..df6ebd5 100644 --- a/src/pages/quesBank/list/myQuesBank.vue +++ b/src/pages/quesBank/list/myQuesBank.vue @@ -1,120 +1,114 @@