更新开发者平台:代理商管理、版本管理、UI优化
This commit is contained in:
@@ -38,7 +38,9 @@ async function handleLogin() {
|
||||
|
||||
toast.success('登录成功')
|
||||
|
||||
if (data.user.role === 'agent') {
|
||||
const isAgent = data.user.role === 'agent' || data.user.parent_agent_id
|
||||
|
||||
if (isAgent) {
|
||||
router.push('/agent')
|
||||
}
|
||||
else {
|
||||
@@ -124,6 +126,8 @@ async function handleLogin() {
|
||||
id="username"
|
||||
v-model="form.username"
|
||||
type="text"
|
||||
name="username"
|
||||
autocomplete="username"
|
||||
placeholder="请输入用户名"
|
||||
:disabled="loading"
|
||||
/>
|
||||
@@ -140,6 +144,8 @@ async function handleLogin() {
|
||||
id="password"
|
||||
v-model="form.password"
|
||||
type="password"
|
||||
name="password"
|
||||
autocomplete="current-password"
|
||||
placeholder="请输入密码"
|
||||
:disabled="loading"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user