Skip to content

Commit

Permalink
🖱 改进交互
Browse files Browse the repository at this point in the history
Resolves #45
  • Loading branch information
YDX-2147483647 authored and flwfdd committed Feb 2, 2025
1 parent b3946ba commit 6d0eeb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ function Logout() { store.fake_cookie = ""; CheckStatus(); }
<n-tab-pane name="登录" style="padding: 4px;">
<n-form ref="form_ref" :rules="rules" :model="user">
<n-form-item path="sid" label="学号">
<n-input v-model:value="user.sid" placeholder="请输入BIT学号" />
<n-input v-model:value="user.sid" placeholder="请输入BIT学号" autofocus />
</n-form-item>

<n-form-item path="password" label="密码">
<n-input v-model:value="user.password" type="password" show-password-on="click" placeholder="告诉我你的秘密" />
</n-form-item>

<n-button @click="Login" block>登录</n-button>
<n-button @click="Login" block attr-type="submit">登录</n-button>
</n-form>
</n-tab-pane>

Expand Down
4 changes: 2 additions & 2 deletions src/views/Score.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ watch(() => webvpn.cookie, () => {
<n-space vertical v-if="!webvpn.cookie">
<n-input :input-props="{id:'sid'}" v-model:value="user.sid" type="number" placeholder="学号" />
<n-input :input-props="{id:'password'}" v-model:value="user.password" type="password" show-password-on="click" placeholder="学校统一身份认证密码" />
<n-button id="submit" @click="WebvpnVerify(user.sid, user.password)" :disabled="!user.sid || !user.password || webvpn.loading"
<n-button id="submit" attr-type="submit" @click="WebvpnVerify(user.sid, user.password)" :disabled="!user.sid || !user.password || webvpn.loading"
block :loading="webvpn.loading">
查询
</n-button>
Expand Down Expand Up @@ -382,4 +382,4 @@ watch(() => webvpn.cookie, () => {
</n-scrollbar>
</n-modal>
</div>
</template>
</template>

0 comments on commit 6d0eeb6

Please sign in to comment.