Commit 45279c5a55994a356635d6d4c769767dfb58eeaa

Authored by fengwotao
2 parents 03d9fc1a 948a2d8a

perf: 优化公共接口管理,批量发布为主题色

... ... @@ -30,9 +30,7 @@
30 30 cancel-text="取消"
31 31 @confirm="handleBatchPublish('batchPublish')"
32 32 >
33   - <a-button :style="publishButtonBg" :disabled="hasBatchPublish">
34   - <span :style="publishButtonTextColor">批量发布</span>
35   - </a-button>
  33 + <a-button color="primary" :disabled="hasBatchPublish"> 批量发布 </a-button>
36 34 </Popconfirm>
37 35 </Authority>
38 36 <!-- <Popconfirm
... ... @@ -95,7 +93,7 @@
95 93 <PublicApiForm @register="registerDrawer" @success="handleSuccess" />
96 94 </template>
97 95 <script lang="ts" setup name="list">
98   - import { h, ref, computed } from 'vue';
  96 + import { h, ref } from 'vue';
99 97 import { BasicTable, useTable, TableAction } from '/@/components/Table';
100 98 import { useDrawer } from '/@/components/Drawer';
101 99 import { columns, searchFormSchema } from './config/config';
... ... @@ -152,14 +150,6 @@
152 150
153 151 const { createMessage } = useMessage();
154 152
155   - const publishButtonBg = computed(() => {
156   - return { backgroundColor: `rgba(0, 128, 0, ${hasBatchPublish.value ? 0.5 : 1})` };
157   - });
158   -
159   - const publishButtonTextColor = computed(() => {
160   - return { color: `rgba(255, 255, 255, ${hasBatchPublish.value ? 0.5 : 1})` };
161   - });
162   -
163 153 const handleSuccess = () => {
164 154 reload();
165 155 setStatusIsTrue();
... ...