refactor(xumu): 统一接口添加 /api 前缀
- 在多个组件中,将请求路径从 "/user/config/page" 修改为 "/api/user/config/page"- 将请求路径从 "/siteUser/querySiteByUserId" 修改为 "/api/siteUser/querySiteByUserId" - 将请求路径从 "/siteUser/del" 修改为 "/api/siteUser/del" -将请求路径从 "/siteUser/add" 修改为 "/api/siteUser/add" - 将请求路径从 "/user/auth/page" 修改为 "/api/user/auth/page" - 将请求路径从 "/user/auth/update" 修改为 "/api/user/auth/update" - 将请求路径从 "/user/update-status" 修改为 "/api/user/update-status" 通过添加 /api前缀,统一了接口请求路径的格式,提高了代码的一致性和可维护性。
This commit is contained in:
		| @@ -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("提交成功!") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user