Skip to content

Commit ad8c5de

Browse files
committed
修改默认绘制器为 polyline
1 parent 8777a1c commit ad8c5de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/states.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const useProfile = defineStore("profile", () => {
3333
const importedDatum = importedProfile?.data;
3434
const processedDatum = importedDatum
3535
? importedDatum.map(toPrivateData)
36-
: [toPrivateData({ fn: "x^2" })];
36+
: [toPrivateData({ fn: "x^2", graphType: "polyline" })];
3737

3838
const datum = ref(processedDatum);
3939

@@ -42,7 +42,8 @@ export const useProfile = defineStore("profile", () => {
4242
.filter(({ hidden }) => !(hidden && forExport))
4343
.map((data) => (data.hidden ? getInvisible() : toPublicData(data)));
4444

45-
const addData = () => datum.value.push(toPrivateData({}));
45+
const addData = () =>
46+
datum.value.push(toPrivateData({ graphType: "polyline" }));
4647

4748
const importedAnnotations = importedProfile?.annotations;
4849
const processedAnnotations = importedAnnotations

0 commit comments

Comments
 (0)