优化状态显示

master
yutent 2023-11-15 18:57:36 +08:00
parent 87217334f8
commit 2eb52dad39
1 changed files with 2 additions and 2 deletions

View File

@ -336,14 +336,14 @@ class Request extends Component {
>通过</wc-link
>`
: ''}
${this.$store.user.admin && it.stat !== 0
${this.$store.user.admin && it.stat === 1
? html`<wc-link
@click=${_ => this.#handlePackgae('reject', it.id)}
type="warning"
>拒绝</wc-link
>`
: ''}
${this.$store.user.admin && it.stat !== 0
${this.$store.user.admin && (it.stat === 1 || it.stat === 2)
? html`<wc-link
@click=${_ => this.#handlePackgae('delete', it.id)}
type="danger"