Browse Source

feat: 测试钯

gemercheung 6 tháng trước cách đây
mục cha
commit
e437cb0666
3 tập tin đã thay đổi với 14 bổ sung12 xóa
  1. 1 0
      src/setSystem.ts
  2. 12 12
      src/view/case/editMenu.vue
  3. 1 0
      src/view/setting/index.vue

+ 1 - 0
src/setSystem.ts

@@ -28,6 +28,7 @@ axios.get(getSysSetting, {
 }).then((data) => {
   systemData.value.name = data.data.title;
   systemData.value.color = data.data.themeColour;
+  console.log('获取当前色',data.data.themeColour)
   localStorage.setItem('f-themeColour', data.data.themeColour)
   refresh();
 });

+ 12 - 12
src/view/case/editMenu.vue

@@ -98,18 +98,18 @@ const menus = computed(() => {
       },
     },
     // 参。。
-    // {
-    //   key: "download",
-    //   label: "下载",
-    //   onClick: async () => {
-    //     const scenes = await getCaseSceneList(caseId);
-    //     if (!scenes.length) {
-    //       alert("当前案件下无场景,请先添加场景。");
-    //     } else {
-    //       downloadCase({ caseId, title: props.title });
-    //     }
-    //   },
-    // },
+    {
+      key: "download",
+      label: "下载",
+      onClick: async () => {
+        const scenes = await getCaseSceneList(caseId);
+        if (!scenes.length) {
+          alert("当前案件下无场景,请先添加场景。");
+        } else {
+          downloadCase({ caseId, title: props.title });
+        }
+      },
+    },
     ...(props.lastMenu || []).map((item) => ({
       ...item,
       onClick: () => item.onClick(caseId),

+ 1 - 0
src/view/setting/index.vue

@@ -13,6 +13,7 @@
         />
       </el-form-item>
       <el-form-item label="系统主题色">
+      当前:  {{ form.color }}
         <el-radio-group v-model="form.color">
           <el-radio
             :value="color"