【更新】使用router-link代替a标签跳转,支持hash和history路由模式

pull/266/head
bubu 2025-05-27 07:14:06 +08:00 committed by 小诺
parent b8f9513d9f
commit a4d45fab44
3 changed files with 9 additions and 3 deletions

View File

@ -43,7 +43,9 @@
<a-form-item>
<a-row :gutter="8">
<a-col :span="7">
<a-button class="xn-wd" round size="large" href="/login">{{ $t('login.backLogin') }}</a-button>
<a-button type="link" class="p-0">
<router-link to="/login">{{ $t('login.backLogin') }}</router-link>
</a-button>
</a-col>
<a-col :span="17">
<a-button type="primary" class="xn-wd" :loading="islogin" round size="large" @click="submitReset">{{

View File

@ -43,7 +43,9 @@
<a-form-item>
<a-row :gutter="8">
<a-col :span="7">
<a-button class="xn-wd" round size="large" href="/login">{{ $t('login.backLogin') }}</a-button>
<a-button type="link" class="p-0">
<router-link to="/login">{{ $t('login.backLogin') }}</router-link>
</a-button>
</a-col>
<a-col :span="17">
<a-button type="primary" class="xn-wd" :loading="islogin" round size="large" @click="submitReset">{{

View File

@ -90,7 +90,9 @@
</a-form-item>
<a-form-item>
<a href="/findpwd" class="xn-color-0d84ff">{{ $t('login.forgetPassword') }}</a>
<a-button type="link" class="p-0">
<router-link to="/findpwd">{{ $t('login.forgetPassword') }}</router-link>
</a-button>
</a-form-item>
<a-form-item>
<a-button type="primary" class="w-full" :loading="loading" round size="large" @click="login"