Browse Source

记录登录时间

tags/v1.0.0
吴迪 1 year ago
parent
commit
1783341a76
2 changed files with 14 additions and 0 deletions
  1. +9
    -0
      src/api/dashboard/index.js
  2. +5
    -0
      src/views/dashboard/index.vue

+ 9
- 0
src/api/dashboard/index.js View File

@@ -62,3 +62,12 @@ export const newestTask = () => request({
url: '/index/newestTask',
method: 'GET'
})

/**
* 记录登录时间
* @returns
*/
export const updateLoginTime = () => request({
url: '/index/updateLoginTime',
method: 'GET'
})

+ 5
- 0
src/views/dashboard/index.vue View File

@@ -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'>

Loading…
Cancel
Save