优化:文章元数据信息开启显示文章阅读数,需要单独提供后端 HTTPS API 服务

This commit is contained in:
2022-11-27 15:44:56 +08:00
parent 9056dfbdd5
commit feea6a3531
11 changed files with 135 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
import { request } from './config'
export const getPv = (id, call) => {
request.get(`/pv/${id}`, {}).then(result => {
call(process(result))
})
}
function process(result) {
if (result.code === 200) {
return result.data
} else {
console.log(result.msg)
}
}
export default { getPv }