hmp 4 년 전
부모
커밋
520021382a
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      pages/login/account-login.vue

+ 5 - 2
pages/login/account-login.vue

@@ -96,9 +96,12 @@
 				let params={
 					tenantId:this.form.tenantId,
 					username:this.form.username,
-					password:md5Libs.md5(this.form.password)
+					password:md5Libs.md5(this.form.password),
+					grant_type:"password",
+					scope:"all",
+					type:"account"
 				}
-				this.$api.system.login(params).then(res=>{
+				this.$api.system.login(this.$u.queryParams(params)).then(res=>{
 					if (this.$isNotEmpty(res.access_token)) {
 						this.cacheToken(res)
 						uni.redirectTo({