瀏覽代碼

记录登录时间

tags/v1.0.0
吴迪 2 年之前
父節點
當前提交
1783341a76
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. +9
    -0
      src/api/dashboard/index.js
  2. +5
    -0
      src/views/dashboard/index.vue

+ 9
- 0
src/api/dashboard/index.js 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存