chore: pref

This commit is contained in:
xiaojunnuo
2023-06-29 17:19:05 +08:00
parent 6d3063437c
commit 042535536e
8 changed files with 25 additions and 242 deletions
@@ -10,8 +10,9 @@
</template>
<script lang="ts">
import { defineComponent, ref, provide, Ref, watch, computed } from "vue";
import { computed, defineComponent } from "vue";
import { statusUtil } from "/@/views/certd/pipeline/pipeline/utils/util.status";
export default defineComponent({
name: "PiStatusShow",
props: {
@@ -26,7 +27,7 @@ export default defineComponent({
},
setup(props, ctx) {
const statusRef = computed(() => {
return statusUtil.get(props.status);
return statusUtil.get(props.status as string);
});
return {
@@ -14,6 +14,7 @@ const StatusEnum: StatusEnumType = {
value: "success",
label: "成功",
color: "green",
spin: true,
icon: "ant-design:check-circle-outlined"
},
error: {