后端显示门店账单
This commit is contained in:
@@ -9,7 +9,6 @@ function maskPhone(phone: string) {
|
||||
return `${phone.slice(0, 3)} **** ${phone.slice(-4)}`;
|
||||
}
|
||||
|
||||
const DEV_DEFAULT_PHONE = import.meta.env.DEV ? '13900000001' : '';
|
||||
const DEV_DEFAULT_CODE = import.meta.env.DEV ? '123456' : '';
|
||||
|
||||
export default function LoginPage() {
|
||||
@@ -18,7 +17,7 @@ export default function LoginPage() {
|
||||
const [params] = useSearchParams();
|
||||
const quick = params.get('quick') === '1';
|
||||
const savedProfile = getStoreProfile();
|
||||
const [phone, setPhone] = useState(getLastPhone() || DEV_DEFAULT_PHONE);
|
||||
const [phone, setPhone] = useState(getLastPhone());
|
||||
const [code, setCode] = useState(DEV_DEFAULT_CODE);
|
||||
const [agreed, setAgreed] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user