添加api

This commit is contained in:
aixianling
2022-08-29 10:02:59 +08:00
parent 6ee02bb486
commit fc395682d8

View File

@@ -204,7 +204,7 @@ export default {
if (this.lock) return this.$message.error("请勿多次提交!")
this.lock = true
let areaFullName = this.dialogForm.areaName
this.instance.post("/user/empower", {...this.dialogForm, areaFullName}).then(res => {
this.instance.post("/app/user/empower", {...this.dialogForm, areaFullName}).then(res => {
this.lock = false
if (res?.code == 0) {
this.dialog = false;
@@ -224,7 +224,7 @@ export default {
this.$refs.addAccountForm.validate(v => {
if (v) {
let {account} = this
this.instance.post("/user/add", account).then(res => {
this.instance.post("/app/user/add", account).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.accountDialog = false
@@ -236,7 +236,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该账号?").then(() => {
this.instance.post("/user/del", null, {
this.instance.post("/app/user/del", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {