diff --git a/project/xumu/AppAccountConfigManage/AppAccountConfigManage.vue b/project/xumu/AppAccountConfigManage/AppAccountConfigManage.vue index a44a2c90..1f195796 100644 --- a/project/xumu/AppAccountConfigManage/AppAccountConfigManage.vue +++ b/project/xumu/AppAccountConfigManage/AppAccountConfigManage.vue @@ -32,7 +32,7 @@ export default { }, methods: { getTableData() { - this.instance.post("/user/config/page", null, { + this.instance.post("/api/user/config/page", null, { params: {...this.page, ...this.search} }).then(res => { if (res?.data) { @@ -43,7 +43,7 @@ export default { }, getTreeData() { const {userId} = this - this.instance.post("/siteUser/querySiteByUserId", null, {params: {userId}}).then(res => { + this.instance.post("/api/siteUser/querySiteByUserId", null, {params: {userId}}).then(res => { if (res?.data) { this.treeData = res.data } @@ -51,7 +51,7 @@ export default { }, handleDelete(node) { this.$confirm("是否要删除该节点?").then(() => { - this.instance.post("/siteUser/del", null, {params: {ids: node.id}}).then(res => { + this.instance.post("/api/siteUser/del", null, {params: {ids: node.id}}).then(res => { if (res?.code == '0' && res?.data != 1) { this.$message.success("删除成功!") this.getTreeData() @@ -64,7 +64,7 @@ export default { createNode(data) { this.$prompt("请输入名称").then(({value}) => { const {userId} = this - this.instance.post("/siteUser/add", null, {params: {name: value, parentId: data.id, userId}}).then(res => { + this.instance.post("/api/siteUser/add", null, {params: {name: value, parentId: data.id, userId}}).then(res => { if (res?.code == '0' && res?.data != 1) { this.$message.success("新增成功!") this.getTreeData() diff --git a/project/xumu/AppAuthManage/authAdd.vue b/project/xumu/AppAuthManage/authAdd.vue index 096c9a28..509ac4e1 100644 --- a/project/xumu/AppAuthManage/authAdd.vue +++ b/project/xumu/AppAuthManage/authAdd.vue @@ -25,7 +25,7 @@ export default { methods: { getDetail() { const {id} = this.$route.query - this.instance.post("/user/auth/page", null, {params: {id}}).then(res => { + this.instance.post("/api/user/auth/page", null, {params: {id}}).then(res => { if (res?.data) { this.detail = res.data|| {} } diff --git a/project/xumu/AppAuthManage/authList.vue b/project/xumu/AppAuthManage/authList.vue index 0cd83843..700e7543 100644 --- a/project/xumu/AppAuthManage/authList.vue +++ b/project/xumu/AppAuthManage/authList.vue @@ -36,7 +36,7 @@ export default { }, methods: { getTableData() { - this.instance.post("/user/auth/page", null, { + this.instance.post("/api/user/auth/page", null, { params: {...this.page, ...this.search} }).then(res => { if (res?.data) { @@ -50,7 +50,7 @@ export default { }, handleConfirm() { this.$refs.form.validate().then(() => { - this.instance.post("/user/auth/update", this.form).then(res => { + this.instance.post("/api/user/auth/update", this.form).then(res => { if (res?.code == '0' && res?.data != 1) { this.dialog = false this.$message.success("提交成功!") diff --git a/project/xumu/AppSystemAccount/AppSystemAccount.vue b/project/xumu/AppSystemAccount/AppSystemAccount.vue index 88abea26..2fe2d4ab 100644 --- a/project/xumu/AppSystemAccount/AppSystemAccount.vue +++ b/project/xumu/AppSystemAccount/AppSystemAccount.vue @@ -208,7 +208,7 @@ export default { changeEnable(row) { const {status, id} = row this.$confirm(`是否要${status == 1 ? '禁用' : '启用'}该账号?`).then(() => { - this.instance.post("/user/update-status", null, {params: {id}}).then(res => { + this.instance.post("/api/user/update-status", null, {params: {id}}).then(res => { if (res?.code == 0) { this.$message.success(`${status == 1 ? '禁用' : '启用'}成功!`) this.getTableData()