chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -18,7 +18,7 @@ import { vi, describe, it, expect, beforeEach } from 'vitest';
|
||||
import { passport } from '@coze-studio/api-schema';
|
||||
import { passportApi } from '../index';
|
||||
|
||||
// 模拟 passport API
|
||||
// Simulated passport API
|
||||
vi.mock('@coze-studio/api-schema/passport', () => ({}));
|
||||
vi.mock('@coze-studio/api-schema', () => ({
|
||||
passport: {
|
||||
|
||||
@@ -42,7 +42,7 @@ export const passportApi = {
|
||||
|
||||
updatePassword: async (params: { password: string; email: string }) => {
|
||||
await passport.PassportWebEmailPasswordResetGet({ ...params, code: '' });
|
||||
// 更新密码后,当前登录态失效,重置 store
|
||||
// After updating the password, the current login state is invalid, reset the store
|
||||
resetUserStore();
|
||||
},
|
||||
|
||||
|
||||
@@ -40,5 +40,5 @@ export const checkLoginImpl = async () => {
|
||||
|
||||
export const checkLogin = () => checkLoginBase(checkLoginImpl);
|
||||
|
||||
// 开源版本不支持渠道授权,暂无实现
|
||||
// The open-source version does not support channel authorization and has not been implemented yet.
|
||||
export const connector2Redirect: Connector2Redirect = () => undefined;
|
||||
|
||||
Reference in New Issue
Block a user