Michael Wang 6 rokov pred
rodič
commit
192d572b72

+ 1 - 1
src/modules/basic/view/campus.vue

@@ -675,7 +675,7 @@ export default {
         }
       }
 
-      this.$http.get(CORE_API + "/org/getRootOrgList").then(response => {
+      this.$httpWithMsg.get(CORE_API + "/org/getRootOrgList").then(response => {
         this.rootOrgList = response.data;
         this.formSearch.parentId = this.user.rootOrgId;
         this.searchForm();

+ 3 - 3
src/modules/basic/view/role_privilege_settings.vue

@@ -134,9 +134,9 @@ export default {
       var url3 = CORE_API + "/rolePrivilege/getPrivilegeGroupList";
 
       Promise.all([
-        this.$http.get(url1),
-        this.$http.post(url2),
-        this.$http.get(url3)
+        this.$httpWithMsg.get(url1),
+        this.$httpWithMsg.post(url2),
+        this.$httpWithMsg.get(url3)
       ]).then(([resp1, resp2, resp3]) => {
         this.orgList = resp1.data;
 

+ 9 - 8
src/modules/basic/view/user.vue

@@ -1064,14 +1064,15 @@ export default {
         "/rolePrivilege/getRoles?includeSuperAdmin=true&rootOrgId=" +
         this.user.rootOrgId;
 
-      Promise.all([this.$http.get(url1), this.$http.post(url2)]).then(
-        ([resp1, resp2]) => {
-          this.rootOrgList = resp1.data;
-          this.roleList4Search = resp2.data;
-          this.roleList4InsertOrUpdate = resp2.data;
-          this.search();
-        }
-      );
+      Promise.all([
+        this.$httpWithMsg.get(url1),
+        this.$httpWithMsg.post(url2)
+      ]).then(([resp1, resp2]) => {
+        this.rootOrgList = resp1.data;
+        this.roleList4Search = resp2.data;
+        this.roleList4InsertOrUpdate = resp2.data;
+        this.search();
+      });
     }
   },
   //初始化查询

+ 1 - 0
src/router.js

@@ -12,6 +12,7 @@ Vue.use(Router);
 
 let router = new Router({
   mode: "history",
+  base: "/admin",
   routes: [
     ...PortalRoutes,
     ...BasicRoutes,