You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
541 B
Vue

<template>
<view>
</view>
</template>
<script setup>
import{ref,onMounted} from "vue"
import {Login} from "@/api"
import {onLoad} from "@dcloudio/uni-app"
const LoginFunc=()=> {
Login().then(res => {
console.log(res)
if(res.status){
sessionStorage.setItem("access_token",res.data.token)
sessionStorage.setItem("refresh_token",res.data.refresh_token)
uni.reLaunch({
url: '/pages/CheckItemMainList'
})
}
})
}
onMounted(()=>{
LoginFunc()
})
</script>
<style>
</style>