Skip to content

Commit

Permalink
chore: use ts in history page
Browse files Browse the repository at this point in the history
  • Loading branch information
LaicZhang committed Apr 21, 2022
1 parent bdc1a2c commit 51af1d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<el-descriptions
style="margin-bottom: 20px;float: left;"
:column="2"
:title="util.formateDate(new Date(item.loginTime))"
:title="util.formateDate(new Date(item.loginTime),'yyyy-MM-dd hh:mm:ss')"
border
>
<el-descriptions-item label="浏览器">
Expand Down Expand Up @@ -35,15 +35,15 @@
</div>
</template>

<script setup>
<script setup lang="ts">
import { onMounted, reactive } from 'vue'
import store from '../store'
import { checkHistoryApi, getHistoryApi } from '@/api/history'
import { getHistoryApi } from '@/api/history'
import util from '@/util/utils'
const userId = store.state.userInfo.userId
const BASE_CLIENT_URL = `${store.state.BASE_CDN_URL}img/client/`
const historyList = reactive([])
const historyList: any = reactive([])
const getHistory = async() => {
const data = await getHistoryApi({ userId })
Expand Down

0 comments on commit 51af1d7

Please sign in to comment.