admin user and ui panel
This commit is contained in:
@@ -104,8 +104,8 @@ async function loginJWT() {
|
||||
// inactive in this port; the field is omitted rather than sent as null.
|
||||
await auth.login({ phone: mobile.value, password: password.value });
|
||||
// legacy did a hard `window.location.href = '/admin/my-data'`; a router push
|
||||
// reaches the same route without discarding the freshly-populated store.
|
||||
await router.push('/my-data');
|
||||
// reaches the equivalent route without discarding the freshly-populated store.
|
||||
await router.push('/dashboard/ecommerce');
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
message.error('خطا در ورود');
|
||||
|
||||
Reference in New Issue
Block a user