@@ -62,3 +62,12 @@ export const newestTask = () => request({ | |||
url: '/index/newestTask', | |||
method: 'GET' | |||
}) | |||
/** | |||
* 记录登录时间 | |||
* @returns | |||
*/ | |||
export const updateLoginTime = () => request({ | |||
url: '/index/updateLoginTime', | |||
method: 'GET' | |||
}) |
@@ -14,6 +14,11 @@ | |||
import HeadComp from './components/HeadComp.vue' | |||
import ContComp from './components/ContComp.vue' | |||
import FootComp from './components/FootComp.vue' | |||
import { updateLoginTime } from '@/api/dashboard/index' | |||
updateLoginTime().then(res => { | |||
console.log(res) | |||
}) | |||
</script> | |||
<style scoped lang='scss'> |