refactor(系统设置): 去掉接口请求路径中斜杠后缀

This commit is contained in:
shiziyuan9527 2023-02-01 16:15:12 +08:00 committed by lyh
parent ae501ba648
commit 0376ff4b99
3 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ export default {
userResourceUrl: {
type: String,
default() {
return '/user/list/';
return '/user/list';
}
}
},

View File

@ -146,7 +146,7 @@ export default {
submitType: '',
userSelectDisable: false,
initUserGroupUrl: "/user/group/user/",
initUserUrl: "/user/list/",
initUserUrl: "/user/list",
rules: {
userIds: {required: true, message: this.$t('member.please_choose_member'), trigger: 'blur'},
sourceIds: {required: true, message: this.$t('group.select_belong_source'), trigger: 'blur'}
@ -209,7 +209,7 @@ export default {
},
open(group, initUserGroupUrl, initUserUrl) {
this.initUserGroupUrl = initUserGroupUrl ? initUserGroupUrl : "/user/group/user/";
this.initUserUrl = initUserUrl ? initUserUrl : "/user/list/";
this.initUserUrl = initUserUrl ? initUserUrl : "/user/list";
this.visible = true;
this.group = group;
this.init();

View File

@ -156,7 +156,7 @@ export default {
submitType: '',
userSelectDisable: false,
initUserGroupUrl: "/user/group/user/",
initUserUrl: "/user/list/",
initUserUrl: "/user/list",
rules: {
userIds: {required: true, message: this.$t('member.please_choose_member'), trigger: 'blur'},
sourceIds: {required: true, message: this.$t('group.select_belong_source'), trigger: 'blur'}
@ -202,7 +202,7 @@ export default {
},
open(group, initUserGroupUrl, initUserUrl) {
this.initUserGroupUrl = initUserGroupUrl ? initUserGroupUrl : "/user/group/user/";
this.initUserUrl = initUserUrl ? initUserUrl : "/user/list/";
this.initUserUrl = initUserUrl ? initUserUrl : "/user/list";
this.visible = true;
this.group = group;
this.init();