登录页面

This commit is contained in:
2026-07-12 15:17:54 +08:00
parent becf91da52
commit bfac6c6663
63 changed files with 4662 additions and 431 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
import Taro from '@tarojs/taro';
import { ClientApp } from '@dukang/shared-types';
import { goLogin } from './auth-nav';
function resolveApiBase(): string {
const origin =
@@ -52,7 +53,7 @@ export function isLoggedIn(): boolean {
}
export function redirectToLogin() {
Taro.navigateTo({ url: '/pages/login/index' });
goLogin();
}
export function logout() {
@@ -119,4 +120,5 @@ export type UserProfile = {
id: string;
phone?: string | null;
nickname?: string | null;
avatarUrl?: string | null;
};