|
@@ -6,6 +6,7 @@ import {Mode} from "@/sdk";
|
|
import {baseLines} from "@/store/baseLine";
|
|
import {baseLines} from "@/store/baseLine";
|
|
import {fixPoints} from "@/store/fixPoint";
|
|
import {fixPoints} from "@/store/fixPoint";
|
|
import {basePoints} from "@/store/basePoint";
|
|
import {basePoints} from "@/store/basePoint";
|
|
|
|
+import {list} from "@/store/measure";
|
|
|
|
|
|
export type MenuRaw = {
|
|
export type MenuRaw = {
|
|
key: string,
|
|
key: string,
|
|
@@ -40,7 +41,7 @@ export const menus: MenuRaw[] = [
|
|
icon: "clear",
|
|
icon: "clear",
|
|
text: "清除",
|
|
text: "清除",
|
|
key: menuEnum.CLEAR,
|
|
key: menuEnum.CLEAR,
|
|
- disabled: () => (baseLines.value.length + fixPoints.value.length + basePoints.value.length) === 0,
|
|
|
|
|
|
+ disabled: () => (baseLines.value.length + fixPoints.value.length + list.value.length + basePoints.value.length) === 0,
|
|
border: true
|
|
border: true
|
|
},
|
|
},
|
|
{
|
|
{
|