Skip to content

Commit

Permalink
Merge pull request #4926 from snowraincloud/preview-fixes
Browse files Browse the repository at this point in the history
fix(black-list): remove login check (fix #4917)
  • Loading branch information
the1812 authored Sep 26, 2024
2 parents 8651717 + deb5170 commit 3738935
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions registry/lib/components/utils/black-list/Settings.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
<template>
<div>
<div class="custom-black-list-extra-options">
<VButton
v-if="login"
ref="button"
@mouseover="loadNameBlackListSettings()"
@click="toggleNameSettings()"
>
<VButton ref="button" @mouseover="loadNameBlackListSettings()" @click="toggleNameSettings()">
精确匹配列表<VIcon icon="right-arrow" :size="16"></VIcon>
</VButton>
</div>
<div class="custom-black-list-extra-options">
<VButton
v-if="login"
ref="button"
@mouseover="loadRegexBlackListSettings()"
@click="toggleRegexSettings()"
>
<VButton @mouseover="loadRegexBlackListSettings()" @click="toggleRegexSettings()">
正则匹配列表<VIcon icon="right-arrow" :size="16"></VIcon>
</VButton>
</div>
</div>
</template>
<script lang="ts">
import { getUID } from '@/core/utils'
import { VIcon, VButton } from '@/ui'
import {
loadNameSettings,
Expand All @@ -39,11 +28,6 @@ export default Vue.extend({
VIcon,
VButton,
},
data() {
return {
login: Boolean(getUID()),
}
},
methods: {
async loadNameBlackListSettings() {
const isFirstLoad = await loadNameSettings()
Expand Down

0 comments on commit 3738935

Please sign in to comment.