From 62e755c2d42b3cbe97eb21a67200deb324161762 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 8 Feb 2023 19:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/store.js | 8 +++++++- src/views/request.vue | 21 ++++++++++++++++++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5d95604..f517397 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,6 @@ "build": "vue-live build" }, "devDependencies": { - "@bytedo/vue-live": "^0.0.13" + "@bytedo/vue-live": "^0.1.4" } } diff --git a/src/store.js b/src/store.js index 2b90621..c96d5e2 100644 --- a/src/store.js +++ b/src/store.js @@ -1,7 +1,13 @@ import { reactive } from 'vue' const store = reactive({ - user: {} + user: {}, + stats: { + 0: '已删除', + 1: '待审核中', + 2: '正常收录', + 9: '拒绝收录' + } }) export default function (app) { diff --git a/src/views/request.vue b/src/views/request.vue index f3020d3..028afbc 100644 --- a/src/views/request.vue +++ b/src/views/request.vue @@ -1,12 +1,20 @@ @@ -17,10 +25,21 @@ export default { 开源库 + 作者 介绍 + 最后同步日期 收录状态 + + + {{ it.id }} + {{ it.author }} + {{ it.description }} + {{ it.sync_date }} + {{ $store.stats[it.stat] }} + +