免密登录
This commit is contained in:
parent
e449dc70ee
commit
bbac7b8a33
|
|
@ -19,7 +19,7 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getUser, loginWithAuth } from '@/api/login.js'
|
||||
import { getUser, loginWithAuth, loginWithoutAuth } from '@/api/login.js'
|
||||
import { postToGetToken } from "@/api/kateLogin.js";
|
||||
import { ElMessage, ElLoading } from 'element-plus'
|
||||
import { reactive, onMounted } from 'vue';
|
||||
|
|
@ -70,7 +70,7 @@ const login = () => {
|
|||
text: 'Loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
})
|
||||
loginWithAuth(loginForm).then(res => {
|
||||
loginWithoutAuth(loginForm).then(res => {
|
||||
loading.close()
|
||||
if (res.data.code == 0) {
|
||||
store.commit('mutationUser', res.data.returnData.user)// 用户信息
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user