Sat Jul 1 18:41:00 UTC 2023 inscode

上级 02ccbf73
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>csdn 用户查分</title> <title>csdn 用户快捷查分该文章</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -184,17 +184,17 @@ function initFirstData() { ...@@ -184,17 +184,17 @@ function initFirstData() {
}); });
onMounted(() => { onMounted(() => {
// const storageUid = window.localStorage.getItem('csdnUid') const storageUid = localStorage.getItem('csdnUid')
// console.log('window.localStorage', window.localStorage) console.log('window.localStorage', localStorage)
// console.log('storageUid', storageUid) console.log('storageUid', storageUid)
// if (storageUid) { if (storageUid) {
// state.searchValue = storageUid state.searchValue = storageUid
// onSearch() onSearch()
// }
// storage
if (state.dataSource) {
initFirstData();
} }
// storage
// if (state.dataSource) {
// initFirstData();
// }
}) })
onUnmounted(() => { onUnmounted(() => {
...@@ -220,7 +220,7 @@ function initFirstData() { ...@@ -220,7 +220,7 @@ function initFirstData() {
<template> <template>
<div class="container"> <div class="container">
<div style="text-align: center;"> <div style="text-align: center;">
<a style="font-size: 24px;font-weight:bolder;">输入csdn用户id查询文章分数</a> <a style="font-size: 24px;font-weight:bolder;">csdn用户id快速查询文章分数并修改文章</a>
</div> </div>
<div> <div>
<Author /> <Author />
...@@ -241,6 +241,11 @@ function initFirstData() { ...@@ -241,6 +241,11 @@ function initFirstData() {
{{ record.url }} {{ record.url }}
</a> </a>
</template> </template>
<template v-if="column.key === 'option'">
<a :href="record.editUrl" target="_blank">
编辑文章
</a>
</template>
</template> </template>
</a-table> </a-table>
</div> </div>
......
...@@ -31,4 +31,8 @@ export const tableColumns= [{ ...@@ -31,4 +31,8 @@ export const tableColumns= [{
}, { }, {
title: '发文时间', title: '发文时间',
dataIndex: 'postTime', dataIndex: 'postTime',
sorter: (a, b) => new Date(a.postTime) - new Date(b.postTime),
}, {
title: '操作',
key: 'option',
}] }]
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册