fix(AppSign): 更新 OAuth 令牌请求 URL

- 将请求 URL 从 "/oauth/token" 修改为 "/api/oauth/token"
- 此修改可能是为了适应后端 API路径的更改
This commit is contained in:
aixianling
2024-12-23 08:46:31 +08:00
parent a748a8b337
commit a894db0144

View File

@@ -109,7 +109,7 @@ export default {
this.$refs.form.validate().then(() => {
const password = this.$encryption(this.form.password)
this.form.type = this.form.type || "platform"
this.$request.post("/oauth/token", null, {
this.$request.post("/api/oauth/token", null, {
auth: {username: 'villcloud', password: "villcloud"},
params: {grant_type: 'password', scope: 'server', ...this.form, password}
}).then(data => {