@ysgroup/core 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/store.ts +1 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/core",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/store.ts CHANGED
@@ -101,17 +101,12 @@ export const useYsStore = defineStore("ys", () => {
101
101
  return "登录状态已失效,请重新登录。";
102
102
  }
103
103
 
104
- async function login(
105
- username: string,
106
- password: string,
107
- otp = "",
108
- ): Promise<void> {
104
+ async function login(username: string, password: string): Promise<void> {
109
105
  if (!ws) throw new Error("未连接");
110
106
  sessionMessage.value = "";
111
107
  const result = (await ws.call("login", {
112
108
  username,
113
109
  password: await sealLoginPassword(password),
114
- otp,
115
110
  app_name: appName.value,
116
111
  user_agent: navigator.userAgent,
117
112
  })) as LoginResult;