|
@@ -1,11 +1,11 @@
|
|
|
import JGRequest from './Request'
|
|
|
|
|
|
-const getToken = async (): Promise<string> => {
|
|
|
+const getToken = async (loginName: string, password: string, orgId: number, stationId: number): Promise<string> => {
|
|
|
return await JGRequest.post("/api/auth/aioLogin", {
|
|
|
- "userName": this.loginName,
|
|
|
- "password": this.password,
|
|
|
- "orgId": this.dept ? this.dept.id : 0,
|
|
|
- "stationId": this.workstation ? this.workstation.id : 0,
|
|
|
+ "userName": loginName,
|
|
|
+ "password": password,
|
|
|
+ "orgId": orgId,
|
|
|
+ "stationId": stationId,
|
|
|
})
|
|
|
}
|
|
|
|