Browse Source

feat: 新建按钮缺少icon

sunxiao 9 months ago
parent
commit
30e0d44edc

+ 2 - 1
src/components/BaseButton/index.vue

@@ -3,7 +3,8 @@ import SvgIcon from '@/components/SvgIcon';
 
 defineProps({
   iconName: {
-    type: String
+    type: String,
+    default: ''
   },
   type:{
     type: String,

+ 1 - 1
src/views/analyse/WorkOrder.vue

@@ -171,7 +171,7 @@ onUnmounted(() => {
     <TheSubMenu title="智能工单" @scrollToLower="onScrolltolower" :loading="isFetching">
       <template #top>
         <div class="create-btn px-[11px] pb-[22px]">
-          <BaseButton @click="handleCreateDialog">新建工单</BaseButton>
+          <BaseButton @click="handleCreateDialog" icon-name="tool-add-circle">新建工单</BaseButton>
         </div>
       </template>
 

+ 1 - 1
src/views/answer/AnswerView.vue

@@ -179,7 +179,7 @@ onUnmounted(() => {
     <TheSubMenu title="历史记录" @scrollToLower="onScrolltolower" :loading="isFetching">
       <template #top>
         <div class="create-btn px-[11px] pb-[22px]">
-          <BaseButton @click="handleCreateDialog">新建对话</BaseButton>
+          <BaseButton @click="handleCreateDialog" icon-name="tool-add-circle">新建对话</BaseButton>
         </div>
       </template>
 

+ 1 - 1
src/views/work/WorkView.vue

@@ -178,7 +178,7 @@ onUnmounted(() => {
     <TheSubMenu title="历史记录" @scrollToLower="onScrolltolower" :loading="isFetching">
       <template #top>
         <div class="create-btn px-[11px] pb-[22px]">
-          <BaseButton @click="handleCreateDialog">新建指令</BaseButton>
+          <BaseButton @click="handleCreateDialog" icon-name="tool-add-circle">新建指令</BaseButton>
         </div>
       </template>